Press ESC to close

HTML 元素参考

HTML 元素参考本页列出了所有使用 tags 创建的 HTML elements。

¥This page lists all the HTML elements, which are created using tags.

它们按功能分组,以帮助你轻松找到你想要的内容。每个元素页面以及本元素页面的侧边栏中都提供了所有元素的字母顺序列表。

¥They are grouped by function to help you find what you have in mind easily. An alphabetical list of all elements is provided in the sidebar on every element's page as well as this one.

注意:有关 HTML 元素和属性的基础知识的更多信息,请参阅 HTML 简介文章中有关元素的部分。

¥Note: For more information about the basics of HTML elements and attributes, see the section on elements in the Introduction to HTML article.

主根¥Main root

元素

描述

表示 HTML 文档的根(顶层元素),因此也称为根元素。所有其他元素必须是该元素的后代。

文档元数据¥Document metadata

元数据包含有关页面的信息。这包括有关样式、脚本和数据的信息,以帮助软件(search engines、browsers 等)使用和呈现页面。样式和脚本的元数据可以在页面中定义或链接到具有该信息的另一个文件。

¥Metadata contains information about the page. This includes information about styles, scripts and data to help software (search engines, browsers, etc.) use and render the page. Metadata for styles and scripts may be defined in the page or linked to another file that has the information.

元素

描述

指定用于文档中所有相对 URL 的基本 URL。一份文档中只能有一个这样的元素。

包含有关文档的机器可读信息(元数据),例如 title、scripts 和 样式表。

指定当前文档与外部资源之间的关系。该元素最常用于链接到 CSS,但也用于建立网站图标("favicon" 样式图标以及主屏幕和移动设备上的应用的图标)等。

表示无法由其他 HTML 元相关元素表示的 metadata,例如