Skip to content

Commit 8769905

Browse files
committed
#8 [add] HTML attribute order
1 parent 8a3ec77 commit 8769905

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

translations/pt_BR/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
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!

0 commit comments

Comments
 (0)