Skip to content

Commit 5611e3c

Browse files
committed
#6 [add] HTML syntax
1 parent 67d6f9f commit 5611e3c

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

translations/pt_BR/README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
* 2.3 [Status](#status)
1818
* 2.4 [Message convention](#message-convention)
1919
* 3. [HTML](#html)
20-
* 3.1 [Comentários](#comments)
20+
* 3.1 [HTML Syntax](#html-comments)
21+
* 3.2 [HTML Comments](#html-syntax)
22+
* 3.3 [HTML Character Encoding](#html-character-encoding)
2123
* 4. [CSS / SCSS](#css--scss)
2224
* 5. [JavaScript](#javascript)
2325

@@ -93,7 +95,30 @@ git commit -m "my first commit"
9395

9496
### HTML
9597

96-
#### 1. Comentários
98+
#### HTML Syntax
99+
100+
Use aspas duplas
101+
102+
```html
103+
<!-- Good -->
104+
<div class="section">
105+
106+
<!-- Bad-->
107+
<div class='section'>
108+
```
109+
110+
Não use o caractere `/`, para elementos que não tem tem tag de fechamento
111+
112+
```html
113+
<!-- Good -->
114+
<img src="..." alt="...">
115+
116+
<!-- Bad-->
117+
<img src="..." alt="..." />
118+
```
119+
120+
121+
#### HTML Comments
97122

98123
O uso mais frequente de comentários no HTMl, é para sinalizar o fechamento de uma tag. O caractere `/` seria o mesmo que escrever `end`. A preferência na identificação da tag, é por sua classe.
99124

0 commit comments

Comments
 (0)