1, del and ins tags
Compatibility: all browsers support
del: definition document deleted text.
ins: Defines text that has been inserted into the document.
<!DOCTYPE html><html lang="zh"><head><meta charset="UTF-8" /><title>html标签使用</title><style>* {padding: 0;margin: 0;}</style></head><body><del>原价:299元</del><ins>特价:188元</ins></body></html>
Effect:
Explanation of HTML5 semantic tags
Define the main content
The header may contain a title element or other elements, such as logo, section header, search form, etc.
Header main title
Header subtitle
##
Define a collection of main modules or navigation links
## a>
;
About
;
Contact
is a special section tag, which has clearer semantics than section. It represents an independent and complete block of related content that can be used independently of other content on the page. For example, a complete forum post, a blog post, a user comment, etc. Generally speaking, an article will have a title part (usually included in the header), and sometimes a footer. Articles can be nested, and the inner article has a subordinate relationship with the outer article tag. For example, a blog article can be displayed as article, and then some comments can be embedded in it in the form of article.
## This is an article introducing HTML 5 structural tags
2011.03.20
;
##A section that has little to do with the rest of the page content is considered independent of Part of the content and can be broken out individually without affecting the whole. This usually appears as a sidebar or embedded content.
/h4>
## " (18)
##
## represents an area (or section) in the document. For example, a topic group in the content will generally include a heading.
Each is generally identified by whether it contains a title (- element) as a child node
##
Here is the section title...
Here is the section title for the content...
## The element represents an independent piece of content. It is used to combine elements. Mostly used for combining pictures and picture descriptions.
picture">
figure picture description
Paragraph....
Defines the footer of the entire page or a part of it (and usually contains the original author, copyright information, contact information and site map, document-related links, etc.)
Original author; copyright information; contact information; document related links, etc...
tag is used to group the titles of web pages or sections. Using the new HTML5 element hgroup, you can add more information to the header element (header title/subtitle)##.
#
Main title
Secondary title
The above is the detailed content of Understand html semantic tags. For more information, please follow other related articles on the PHP Chinese website!
Statement: 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