Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of HTML5 tag

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article shares with you the content of a sample analysis of HTML5 tags. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Tags that can be omitted

Tags with closing tags are not allowed: area (define areas in the image map), base (specify default addresses or default destinations for all links on the page), br, col (define attribute values for one or more columns in the table), embed (define embedded content, such as plug-ins-5), hr, img, input, keygen, link, meta, param, source, track, wbr

Tags with closing tags can be omitted: li, dt, dd, p, rt, optgroup, option, colgroup, thread, tbody, tr, td, th

Tags that can be omitted completely: html, head, body, colgroup, tbody

New label

Section: a content block in a page that contains sections, pages, footers, or other parts of the page, and H2, h3. And other tags are used together to represent the document structure.

Article: represents a piece of independent content on a page that has nothing to do with context, such as an article.

Aside: defines something other than article. The content of aside should be related to the content of article.

Header: the content block in the page or the title of the entire page.

Footer: a content block on a page or a footnote for the entire page.

Hgroup: a combination of content blocks on a page or the title of the entire page.

Nav: the part of the navigation link.

Figure: specifies independent streaming content (images, diagrams, photos, code, etc., which should be relevant to the main content, but should not affect the document stream if deleted).

Video: video. Exp: video

Audio: audio.

Embed: used to embed content (including various media).

Mark: change color, follow.

Progress: progress bar. Exp:

Time: defines a date or time, or both. This mark is for the retrieval engine, and the engine will know that this piece represents a time according to this mark. There is an attribute of pubdate, and when the engine reads it, it knows that the value in the datatime in this block is the release time of this article, and there are two special characters T and Z in this time. T represents the delimiter of date and time, and Z represents the standard format of time. Exp:

Datalist: defines a list of options. Use this element with the input element to define the possible values of input. Exp:

Output:exp:0100+=

Global attribute

Data-type: custom attributes.

Hidden: hidden, single tag.

Spellcheck: correct the syntax of the input. Exp:

Tabindex:tab key order.

Contenteditable: modify the content. Exp:

Make the whole text editable: window.document.designMode= "off"; / / off off, on: editable

Thank you for reading! This is the end of this article on "sample Analysis of HTML5 tags". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report