doc: update HTML document structure content

This commit is contained in:
Leon Xu committed 2021-07-28 20:50:02 -07:00
1 parent 736a149cdb
commit c85a5b0dd0
1 file changed
+5 -1
+5 -1
View File
@@ -94,4 +94,8 @@ HTML的全称是Hyper Text Markup Language(超文本标记语言)
<head>关于页面的内容,包括metadata, title, css, js</head>
<body>页面内容</body>
</html>
```
```
- HTML页面或文档被保存到以.html扩展名结尾的文件中。
- <head>标签描述页面而<body>标签包含页面的内容
- 我们所有的一些内容将会写在<body>标签里面,而不是放在<head>标签
- DOCTYPE标签告诉浏览器将我们页面的代码解释为HTML5,这是该语言的最新/最好的版本。