Markup
Background
Even if you work in framework environment, you should keep in mind writing semantic markup. This means that markup should contain semantic elements introduced mostly in HTML5 standard.
For coding static sites we recommend using any template engine like Handlebars or Pug.
We recommend you to take a look at this set of rules of writing HTML.
Rules
-
Use semantic elements whenever you can
-
When coding static sites, prefer templates engines over bare HTML
-
Declare attributes starting from class, type and end with style
- always follow linter settings - especially in React or Vue.js environment
-
Use double quotes for declaring value of the attribute (reference)
-
Be consistent with HTML formatting