SoFunction
Updated on 2025-04-13

9 new unknown page tags added to HTML5

The newly added tags in HTML5 can be mainly divided into several categories. The following is expressed and summarized according to the categories.

HTML5 new tag classification

Structural tags

<header>: Defines the header of a document or section.
<nav>: Define navigation links.
<section>: Defines independent sections in the document.
<article>: Defines separate content areas in documents, pages, applications, or websites.
<aside>: Defines the sidebar content of the page.
<footer>: Defines the footer of a document or section.
<main>: Defines the main content of the document.

Multimedia tags

<video>: Define a video or movie.
<audio>: Define audio content.
<source>: Defines media resources for <video> and <audio> elements.
<track>: Defines text tracks for <video> and <audio> elements.
<embed>: Define embedded content, such as plug-ins.
<canvas>: Used to draw graphics on web pages.

Form Tags

<datalist>: Defines a list of options, used in conjunction with the <input> element to provide "autocomplete" functionality.
<output>: Define different types of output, such as the output of a script.

Other tags

<time>: Defines a date or time.
<mark>: Defines the highlighted text.
<progress>: Defines the progress of any type of task.
<meter>: Defines scalar measurements within known ranges or fractional values.
<details>: Define additional details visible or hidden by the user.
<summary>: Defines the visible title of the <details> element.
<figure>: Specify independent streaming content (images, charts, photos, codes, etc.).
<figcaption>: Defines the title (caption) of the <figure> element.

9 unknown page tags in HTML5

1. Figure tag

Figure tag is one of the new tags added in HTML5, representing an independent streaming content (text, image).
When using the figure tag, the content of the tag should be related to the main content; but if deleted, it should not affect the document flow.

Example:

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;figureTag usage&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;Guilin,Located in northeastern Guangxi,It is a world-famous tourist destination and historical and cultural city。Located on the west bank of the Li River,Produce osmanthus、Osmanthus trees become famous for their forests。&lt;/p&gt;
&lt;figure&gt;
  &lt;p&gt;Guilin山水甲天下&lt;/p&gt;
  &lt;img src="" width="300" height="155" /&gt; &lt;/figure&gt;
&lt;/body&gt;
&lt;/html&gt;

In the above code, add a text description and picture to the figure tag to form an independent stream unit. Equivalent to a div.

2. figcaption tag

The figcaption tag is located in the figure tag and is used to define the caption of the figure tag. By default, the figcaption tag should be placed in the position of the first or last subtag of the figure tag.

Example:

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;figcaptionTag application&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;Shaolin Temple,Located in Songshan, Dengfeng, Zhengzhou City, Henan Province, China,It is the birthplace of Shaolin martial arts。&lt;/p&gt;
&lt;figure&gt;
  &lt;figcaption&gt;Shaolin Temple&lt;/figcaption&gt;
  &lt;img src="" width="388" height="296" /&gt; &lt;/figure&gt;
&lt;/body&gt;
&lt;/html&gt;

As can be seen from the above code, in the figure tag, a "Shaolin Temple" title is added to the figure tag using the figcaption tag.

3. details tag

In HTML5, details tags are mainly used to describe the details of a document or a part.
It is often used with the "summary" tag, which defines the title for the details tag.
When running in the browser, the title is visible, and when the user clicks on the title, the content in the details tag is displayed.
Currently, details tags are only recognized in Chrome browsers.
The following is an example running in the Chrome browser to illustrate the application of the details tag.
Example:

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;detailsTag application&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;details&gt;
  &lt;summary&gt;Red Flag Canal&lt;/summary&gt;
  &lt;p&gt;Red Flag Canal是20century60Era,The people of Lin County under extremely difficult conditions,Project to the Zhang Forest Construction built from the hillside of Taihang。It is a national key cultural relics protection unit,Called by the world“Artificial Tianhe”,Known internationally as“The Eighth Miracle of the World”。&lt;/p&gt;
&lt;/details&gt;
&lt;/body&gt;
&lt;/html&gt;

In Chrome, you can see that the content in the details tag is not displayed by default, only the title in the summary tag is displayed.

Click the title "Red Flag Canal" in the details tag, and the content in the details tag will be automatically displayed.

4. markLabel

Mark tags are mainly used in HTML 5 to define text with tokens. If the user needs to highlight a certain text when editing a text, you can use the mark tag.

Example:

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;markLabel&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;today,Good weather,
  &lt;mark&gt;Feeling&lt;/mark&gt;
  fine!&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;

From the above code, use the mark tag to set the "Mood" text to highlight, and the default background color is yellow.

5. progress tag

In HTML5, the function of the progress tag is to define the progress (process) in operation.
For example, you can use progress tags to display the progress of time-consuming functions in JavaScript.
Common properties of progress tags are introduced as follows:
- max value Defines the completed value.
- value Value Defines the current value of the process.

Example:

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;progressTag application&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
The project download progress is:
&lt;progress value="20" max="100"&gt; &lt;/progress&gt;
&lt;/body&gt;
&lt;/html&gt;

In the above code, add a project download progress bar. Define the current completion progress to 20 and the download completion value is 100

6. meter tag

In HTML, meter tags are mainly used to represent known ranges and measurable rank scalars or fractional values, such as disk usage ratio, keyword matching degree, etc.
It should be noted that the meter tag cannot be used to represent any values ​​without a known range, such as weight or height, unless the range of their values ​​has been set.

The meter tag attributes are introduced as follows:
- value represents the current actual value; if no specification is made, the first number in the label will be considered as its current actual value.
- Min The current minimum value; if not specified, it is 0.
- Max The current maximum value; if not specified, it is 1; if the specified maximum value is less than the minimum value, the minimum value will be considered the maximum value.
- Low The current low value zone; must be less than or equal to the max value; if the low value zone number is less than the minimum value, it will be considered the minimum value.
- High Current high value area. Optimum; its range is in the minimum and maximum ranges and can be in the high range.

Example:

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;meterTag application&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;11Personal work completion progress in the month:&lt;/p&gt;
&lt;p&gt;Fu Qiang:
  &lt;meter value="10" optimum="100"         high="90" low="10" max="100" min="0"&gt; &lt;/meter&gt;
  &lt;span&gt; 10% &lt;/span&gt;
  &lt;/p&gt;
&lt;p&gt;Zhang Hong:
  &lt;meter value="60" optimum="100"         high="90" low="10" max="100" min="0"&gt; &lt;/meter&gt;
  &lt;span&gt; 60% &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;Wang Lin:
  &lt;meter value="89" optimum="100"         high="90" low="10" max="100" min="0"&gt; &lt;/meter&gt;
  &lt;span&gt; 89% &lt;/span&gt;
&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;

In the above code, the work progress of 3 people is displayed in the form of a progress bar. The maximum completion progress is 100% and the minimum is 0%.

7. menu tag

The menu tag is an old tag re-enabled in HTML 5 and already exists when HTML 2.
It was once abandoned at HTML 4, but was reused in HTML 5 and given new functional meanings.
It is often used in combination with the li list tag to define a list-like menu.

Its commonly used properties and descriptions are as follows:
- autosubmit If true, it will be submitted automatically when the form control changes.
- label Defines a visible label for the menu.
- type defines which type of menu to display, the default value is list.

Example:

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;LabelmenuUse&lt;/title&gt;
&lt;style type="text/css"&gt;
body {
    font-size:12px;
}
menu {
    padding:0;
    margin:0;
    display:block;
    border: solid 1px #365167;
    width:100px  
}
menu li {
    list-style-type:none;
    margin:2px;
    height:25px;
    width:80px
}
menu li:hover {
    border: solid 1px #7DA2CE;
    background-color:#CFE3FD
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;Choose your favorite color:&lt;/p&gt;
&lt;menu&gt;
&lt;li&gt;&lt;input type="checkbox" /&gt;red&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" /&gt;yellow&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" /&gt;green&lt;/li&gt;
&lt;li&gt;&lt;input type="checkbox" /&gt;blue&lt;/li&gt;
&lt;/menu&gt;
&lt;/body&gt;
&lt;/html&gt;

The above code is an example of selecting a personal favorite color, first add a menu tag to the page, and then add a li list tag to the tag.
Finally, add the css style to realize the effect of displaying the selection of an option in the menu when a user moves the mouse to a certain li tag.

8. Command Tag

Command tag is a new important tag added to HTML 5, which is used to define various types of buttons (including command buttons, single selection buttons, picture buttons) and check boxes.
Use the url attribute of this tag to add images and realize the image button effect;

Common properties of command tags are as follows:
- checked Defines whether it is selected. Only for radio or checkbox types.
- disabled Defines whether command is available.
- icon Defines the url of the image displayed as command.
- label command defines the visible label.
- radiogroup groupname defines the group name to which command belongs. Used only if type is radio.
- type Defines the type of the command. The default is "command".

Command tags can be used in conjunction with menu tags, and the corresponding action will be performed when an option in the menu is clicked.

9. NAV tags

The nav tag is a navigation tag of the page.
Links with navigation properties can be summarized into an area to make the page's tag more semantic.
Example:

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;navTag application&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;nav draggable="true"&gt; 
&lt;a href=" " rel="external nofollow" &gt;Baidu&lt;/a&gt;
&lt;a href="" rel="external nofollow" &gt;Sina&lt;/a&gt;
&lt;a href="" rel="external nofollow" &gt;Google&lt;/a&gt; 
&lt;/nav&gt;
&lt;/body&gt;
&lt;/html&gt;

In the above code, three links are placed into the nav tag to form an area.

Summarize

These new tags provide more semantic elements for HTML5, making the web page structure clearer, easier to understand and maintain. At the same time, new tags related to multimedia and forms also provide more interactive and multimedia content support for web pages.

This is the end of this article about the 9 unknown page tags added to HTML5. For more information about the 9 commonly used tags added to HTML5, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!