doc: update nested tags section

This commit is contained in:
Leon Xu committed 2021-07-28 21:01:08 -07:00
1 parent 581c7f63d3
commit f4c84866c7
1 file changed
+17 -1
+17 -1
View File
@@ -98,4 +98,20 @@ HTML的全称是Hyper Text Markup Language(超文本标记语言)
- HTML页面或文档被保存到以.html扩展名结尾的文件中。
- <head>标签描述页面而<body>标签包含页面的内容
- 我们所有的一些内容将会写在<body>标签里面,而不是放在<head>标签
- DOCTYPE标签告诉浏览器将我们页面的代码解释为HTML5,这是该语言的最新/最好的版本。
- DOCTYPE标签告诉浏览器将我们页面的代码解释为HTML5,这是该语言的最新/最好的版本。
## 嵌套标签
标签可以“嵌套”在其他标签中
- 结束标记必须与开始标签匹配
- 浏览器可能会正确地呈现它,但它是无效的HTML
```html
<body>
<p>
This is a <em> really, <strong>REALLY</strong></em> awesome paragraph.
And here's a neat list:
</p>
<ol>
<li>with one list item</li>
<li>with another list item</li>
</ol>
</body>