HTML5 is much simplified, and its design follows three principles: 1. Compatibility, 2. Practicality, 3 .Universal accessibility
1. header element
The tag defines the header of a document or a part of a document, and can also be used to set the article title.
The element should serve as a container for introductory content or a navigation link bar.
In a document, you can define multiple elements.
Note: The tag cannot be placed inside a
Syntax description: tag pairs can contain six title elements h1~h6, as well as p, span and other elements.
hgroup element
The tag defines the main title and subtitle of the document. Only six title elements h1~h6 are usually used between tag pairs.
2. footer element
The footer element is mainly used to define footnote content for a page or an article, including the copyright information of the article, author contact information, etc. A page can contain multiple footers. element.
3. article element Tags define independent content, a piece of independent content on the page that is not relevant to the context. For example, a post, a blog post, etc. The content defined by the tag must be meaningful in itself and must be independent of the rest of the document. Potential sources for : forum posts, blog posts, news stories, comments, etc. Syntax description: tag pairs can contain elements such as header, footer, section, and nested article. Example:
4. section element The section element is used Divide a certain block of content on the page, such as further dividing the block of content into several parts such as the chapter title, content, and footer. Syntax description: The tag pair can contain six title elements h1~h6, p elements and multiple article elements "Block" contains multiple articles inside. In addition, section elements can be nested. Example:
5. nav element The nav element is used Define various navigation bars on the page. A page can have multiple nav elements as navigation for the entire page or different parts of the content. The only impossible position for nav is within the address element Basic syntax:
6. aside element The aside element represents auxiliary information related to the content of the article element in addition to the content of the article element. It can include references, sidebars, and advertisements related to the current page or main content. , navigation bars, and other similar parts that are distinct from the main content. 7. audio audio tag
The audio tag defines sound, such as music or other audio streams. Currently, the audio element supports three file formats: MP3, Wav, and Ogg.
src The video to be played URL width Set the width of the video player height Set the height of the video player autoplay The video will be played as soon as it is ready controls to the user Display video controls, such as play/pause buttons loop Start playing again after the media file has finished playing
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn