File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 2020 * 3.1 [ HTML Syntax] ( #html-comments )
2121 * 3.2 [ HTML Comments] ( #html-syntax )
2222 * 3.3 [ HTML Character Encoding] ( #html-character-encoding )
23+ * 3.4 [ HTML Attribute Order] ( #html-attribute-order )
2324* 4 . [ CSS / SCSS] ( #css--scss )
2425* 5 . [ JavaScript] ( #javascript )
2526
@@ -160,6 +161,23 @@ Sempre use `UTF-8`
160161</head >
161162```
162163
164+ #### HTML Attribute Order
165+
166+ A ordem de atributos facilita a leitura e organização
167+
168+ 1 . class
169+ 2 . id, name
170+ 3 . data-*
171+ 4 . src, for, type, href
172+ 5 . title, alt
173+ 6 . aria-* , role, itemprop
174+
175+ ``` html
176+ <div class =" ..." id =" ..." itemprop =" ..." ></div >
177+ <a class =" ..." href =" ..." >...</a >
178+ <img class =" ..." src =" ..." alt =" ..." >
179+ ```
180+
163181## Contribuindo
164182
165183- Faça o fork!
You can’t perform that action at this time.
0 commit comments