标签中详细的解释来自于[HTML 教程 | 菜鸟教程](https://www.runoob.com/html/html-tutorial.html) ## 0、语言声明 ```html ``` ## 1、`` ```html ``` | `html`属性 | 描述 | | :----------------------------------------------------------------------------- | :--------------------------------------------------------- | | [accesskey](https://www.runoob.com/tags/att-global-accesskey.html) | 设置访问元素的键盘快捷键。 | | [class](https://www.runoob.com/tags/att-global-class.html) | 规定元素的类名(classname) | | [contenteditable](https://www.runoob.com/tags/att-global-contenteditable.html) | 规定是否可编辑元素的内容。 | | [contextmenu](https://www.runoob.com/tags/att-global-contextmenu.html) | 指定一个元素的上下文菜单。当用户右击该元素,出现上下文菜单 | | [data-*](https://www.runoob.com/tags/att-global-data.html) | 用于存储页面的自定义数据 | | [dir](https://www.runoob.com/tags/att-global-dir.html) | 设置元素中内容的文本方向。 | | [draggable](https://www.runoob.com/tags/att-global-draggable.html) | 指定某个元素是否可以拖动 | | [dropzone](https://www.runoob.com/tags/att-global-dropzone.html) | 指定是否将数据复制,移动,或链接,或删除 | | [hidden](https://www.runoob.com/tags/att-global-hidden.html) | hidden 属性规定对元素进行隐藏。 | | [id](https://www.runoob.com/tags/att-global-id.html) | 规定元素的唯一 id | | [lang](https://www.runoob.com/tags/att-global-lang.html) | 设置元素中内容的语言代码。 | | [spellcheck](https://www.runoob.com/tags/att-global-spellcheck.html) | 检测元素是否拼写错误 | | [style](https://www.runoob.com/tags/att-global-style.html) | 规定元素的行内样式(inline style) | | [tabindex](https://www.runoob.com/tags/att-global-tabindex.html) | 设置元素的 Tab 键控制次序。 | | [title](https://www.runoob.com/tags/att-global-title.html) | 规定元素的额外信息(可在工具提示中显示) | | [translate](https://www.runoob.com/tags/att-global-translate.html) | 指定是否一个元素的值在页面载入时是否需要翻译 | ## 2、`` ```html ``` 头部标签并不会在网页中显示出来,是用来准备网页所需的组件,以及网页属性声明。 ## 3、`` ```html 我是一个标题 ``` 标题标签是用来定义网页的标题,在浏览器的标签页上显示的文字。 ## 4、`` ```html 我是一个标题 Hello,world! ``` 主体标签是用来呈现网页的内容的,里面所有的内容都会呈现在网页中。 | `body`属性 | 值 | 描述 | | :----------------------------------------------------------------- | :---- | :-------------------------------------------------------------- | | [alink](https://www.runoob.com/tags/att-body-alink.html) | color | HTML5 不支持。 HTML 4.01 已废弃。 规定文档中活动链接的颜色。 | | [background](https://www.runoob.com/tags/att-body-background.html) | URL | HTML5 不支持。 HTML 4.01 已废弃。 规定文档的背景图像。 | | [bgcolor](https://www.runoob.com/tags/att-body-bgcolor.html) | color | HTML5 不支持。 HTML 4.01 已废弃。规定文档的背景颜色。 | | [link](https://www.runoob.com/tags/att-body-link.html) | color | HTML5 不支持。 HTML 4.01 已废弃。规定文档中未访问链接的颜色。 | | [text](https://www.runoob.com/tags/att-body-text.html) | color | HTML5 不支持。 HTML 4.01 已废弃。规定文档中所有文本的颜色。 | | [vlink](https://www.runoob.com/tags/att-body-vlink.html) | color | HTML5 不支持。 HTML 4.01 已废弃。规定文档中已被访问链接的颜色。 | ## 5、`