figure is a new tag. Figure is a new semantic tag in HTML5, which is used to specify independent flow content, such as images, charts, photos, etc.; the content in figure is usually related to the main content, and the position of the element is independent from the main content. Yes, if you delete it, it will not affect other content in the web page.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
is a new tag in HTML 5, a new semantic tag added to html5.
is used to specify independent stream content (images, charts, photos, code, etc.).
The content in the figure is usually related to the main content, and the position of the elements is independent from the main content. If it is deleted, it should not affect the document flow; that is, if the figure is deleted, it will not affect other content in the web page.
Note:
The outline of the element content is excluded from the main outline of the document.
The element can be used with the element.
The element is used to define the title for the element.
Insert a into the element to associate a title with it (as its first or last child element)
Benefits of using figure and figcaption tags
When search engines search for figure, they will know that pictures, charts, photos, codes and other media are stored here. I don’t think that what is stored here is articles or other things. Search engines make searching faster and more convenient.
On the other hand, when programmers see this label, they will know that what exists here are pictures and other media for easy reading.
The above is the detailed content of Is figure a new tag in html5?. For more information, please follow other related articles on the PHP Chinese website!
Statement of this Website
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
This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an