doc: add comment section

This commit is contained in:
Leon Xu committed 2021-07-29 13:28:18 -07:00
1 parent 54928446e9
commit 9f89d34df0
1 file changed
+12 -1
+12 -1
View File
@@ -181,4 +181,15 @@ HTML的全称是Hyper Text Markup Language(超文本标记语言)
- [伊恩·德夫林的文章](https://iandevlin.com/blog/2011/04/html5/html5-section-or-article/)
- 一个[YouTube视频](https://www.youtube.com/watch?v=swWeWesZVZU)
- Article标签是一个完整的、独立的内容。Section标签是整体的一个碎片。
- 记住:div没有语义意义,只应该在CSS/JS中选择内容时添加,并且应该是你的“最后手段”。
- 记住:div没有语义意义,只应该在CSS/JS中选择内容时添加,并且应该是你的“最后手段”。
## 注释
- 注释来记录你的HTML文件或“注释掉”文本
```html
<!-- My fancy web page!
CSE 154, Spring 2048-->
<p>School is<!--a lot of ----> fun!</p>
```
- 许多网页没有被彻底注释(或根本没有注释)
- 在页面顶部和禁用代码仍然有用
- 注释不能嵌套,也不能包含a--