search
HomeWeb Front-endH5 TutorialSummary details of html5 common tags

1. Main structure

##footerFooter
header The page header is different from
aside sidebar
nav External link collection
section Chapter or paragraph
article Records in the form of articles, summary, or message POST (generally paired with inline headers Head, tail, and bottom structures are used)
hggroup Data such as subtitles, title information, optional titles, and TAG tags are better understood in English. , heading of a section
address Contact information, generally used around article or body anchor elements
2. Summary table of HTML 5 element tags

Document type declarationRoot element elementhtml##META elementComponent elementsGroupdlText level semantic elementtimeEdit elementsEmbedded content elementsobjectTableForm elementInteractive elementsScript element##3. HTML 5 element general attributes and event handlers
head, title, base, link, meta, style
body, section, nav, article, aside, h1, h2, h3, h4 , h5, h6, hgroup, header, footer, address
Content elementp, hr, br, pre, blockquote, ol ,ul,li,,dt,dd,figure,figcaption,p
a,em,strong, small, cite, q, dfn, abbr, , code, var, samp, kbd, sub, sups, i, b, mark, ruby, rt, rp, bdo, span
ins,del
img,iframe,embed,, param, video, audio, source, canvas, map, area
Elementtable,caption,colgroup,col,tbody,thread,tfoot,tr,td,th
form,fieldset,legend,label , button, select, datalist, optgroup, option, textarea, keygen, output, progress, meter
details, summary, command, menu
script, noscript

HTML5Element general attribute table、contenteditable、contextmenu、onabort, onblur*, oncanplay, oncanplaythrough, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror*, onfocus*, onformchange, onforminput, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload*, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreadystatechange, onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate ,onvolumechange,onwaiting.
accesskey、classdir、draggable , hidden, id, lang, spellcheck, style, tabindex, title##HTML5 element event handle attribute

4. HTML5 element tag interpretation

## <tr> <td>●</td> <td>Title</td> <td>Define the file title, displayed at the top of the browser</td> <td></td> </tr> <base> <tr> <td>o</td> <td>Basic mark</td> <td>can convert relative URL to absolute and specified link</td> <td></td>##< ;link></tr> <tr>o<td></td>External resource connection<td></td>Must have rel attribute description<td></td> <td></td> <meta> </tr> <tr>o<td></td> <td>Other</td>META data<td><a href="http://www.php.cn/html5/html5-3-mip-normal.html" target="_blank">META data that cannot be described by title, base, link, style, and script elements</a></td> <td> </td> <style></style> </tr> <tr>●<td></td>Embedded document style information<td></td> <td></td> <td></td>##Component tags</tr> <tr><td colspan="4"><strong></strong></td></tr>●<tr> <td>Document body start</td> <td>Document content container</td> <td></td> <td><section></section></td> </tr>●<tr> <td>Represents a common document or application component</td> <td> </td> <td></td>##<nav><td></td>●</nav> </tr> <tr> <td>Navigation</td>Links<td></td>External link or document internal link<td><a href="http://www.php.cn/code/9303.html" target="_blank"></a></td> <article><td> </td>●</article> </tr> <tr>Page module<td></td>Records in the form of articles, abstracts or messages POST etc.<td></td> <td></td> <aside><td></td>●</aside> </tr> <tr>Isolated module<td></td>Generally used as sidebar advertisements, descriptions, <td>citations</td>, navigation, etc., the aside containment part is generally less coupled with the main text<td></td> <td><a href="http://www.php.cn/wiki/231.html" target="_blank"><h1></h1></a></td>●</tr> <tr>Title tag<td></td>In addition, there are h2, h3, h4, h5, h6<td></td> <td></td> <hgroup><td></td>●</hgroup> </tr> <tr>Group title<td></td> is used when a set of elements such as h1-h6 is used to distinguish the main and subtitles ? ?</tr> <tr> <td><header></header></td> <td>●</td> <td>Group description or group navigation</td> <td>Can also be called the header title</td> </tr> <tr> <td><footer></footer></td> <td>●</td> <td>Footer title</td> <td>The scope is related to the nearest widget element</td> </tr> <tr> <td><address></address></td> <td>●</td> <td>Address or contact information</td> <td> </td> </tr> <tr> <td>##Group content tag<strong></strong> </td> <td></td> <td></td> <td></td> </tr> <tr> <p></p> <td></td>●<td></td>Paragraph mark <td></td> <td></td> </tr> <tr> <hr> <td></td>o<td></td>Horizontal dividing line<td></td> <td></td> </tr> <tr> <br><td></td>o<td></td>Line break<td></td> <td></td> </tr>##<pre class="brush:php;toolbar:false"><tr> <td>●</td> <td>Preformatted block</td> <td> </td> <td></td>##<blockquote></blockquote> </tr><tr>●<td></td> Block quote<td></td> <td></td> <td>##<ol></ol> </td> </tr>●<tr> <td>Numbered list</td> <td> </td> <td></td> <td><ul></ul></td> </tr>●<tr> <td>Project list</td> <td> </td> <td></td> <td><li></td> </tr>●<tr> <td>List items</td> <td> </td> <td></td>##<dl> <td></td>●</dl> </tr><tr>Definition list <td></td> <td></td> <td></td> <dt> <td></td>●</dt> </tr><tr>Definition name<td></td> <td></td> <td></td> <dd> <td></td>●</dd> </tr><tr>Definition description<td></td> <td></td> <td>##<figure></figure> </td> <td>●</td> </tr>Stream content block description<tr> <td>Use in combination with figcaption</td> <td></td>##<figcaption><td></td>●<td> </td>figureContent attribute</figcaption> </tr><tr> <td></td> <td>##<p></p> </td> <td>●</td> <td>Positioning tag</td> </tr>None Actual meaning <tr> <td></td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td></td> <td></td>Text-level semantics Tag<td></td> <td></td> </tr><a><tr><td colspan="4">●<strong></strong>Link tag</td></tr> <tr> <td></td> <td><em></em></td> <td>●</td> <td>Emphasis mark</td> </tr> <tr> <td></td> <td><strong></strong></td> <td> ●</td> <td>Emphasis mark</td> </tr> <tr> <td></td>##<small><td></td>●<td></td>Reduce font<td></td> </small> </tr> <tr> <td>##<cite></cite> </td> <td>●</td> <td>italic mark</td> <td> </td> </tr> <tr> <td><q></q></td> <td>●</td> <td>Quotation mark content</td> <td>The original text is phrasing content, it is not clear how to translate it</td> </tr> <tr> <td>&lt ;dfn></td> <td>●</td> <td>Definition of terms</td> <td> </td> </tr> <tr> <td><abbr></abbr></td> <td>●</td> <td>Abbreviation</td> <td> </td> </tr> <tr>##<time><td></td>●<td></td>Date Time<td></td> <td></td></time> </tr> <tr><code><td></td>●<td></td>Program code<td></td> <td></td></code></tr>##<var><td>●</td> <td></td>Variable<td></td> <td> </td> <tr>##<samp><td></td>● <td></td>Example<td><a href="http://www.php.cn/wiki/70.html" target="_blank"> </a></td> <td></td> <kbd></kbd></samp> </tr> <tr>●<td></td>Keyboard words<td></td> <td></td> <td>##<sub><sups></sups></sub> </td> </tr>●<tr> <td>Superscript/Subscript</td> <td> </td> <td></td> <td><i></i></td> </tr>●<tr> <td>Italic mark</td> <td> </td> <td></td>##<b></b><td></td>●</tr> <tr>Bold mark<td></td> <td></td> <td>##<mark></mark> </td> <td>●</td> </tr> Mark or highlight<tr> <td> </td> <td></td>##<ruby><td></td>●<td></td>Annotation Mark</ruby> </tr> <tr> <td> </td> <td></td> <rt><td></td>●<td></td>ruby child element</rt> </tr> <tr>Use in conjunction with ruby, for example: <ruby>天<rt> Tian</rt>Yuan<rt>Yuan</rt></ruby><td></td> <td>##<rp></rp> </td> <td>●</td> <td>ruby Child elements </td> </tr> are generally used as rt elements <tr> Comments <td> Use </td> <td></td> <td><bdo></bdo></td> <td>●</td> </tr> <tr> <td> </td> <td></td> <td><span></span></td> <td>●<a href="http://www.php.cn/code/8105.html" target="_blank"></a>Custom tag</td> </tr> <tr> <td></td> <td></td>Edit tag<td></td> <td></td>#<ins></ins> </tr> <tr>●<td></td> <td></td> <td></td> <td></td> <del></del> </tr> <tr>●<td colspan="4"><strong> </strong></td> </tr> <tr> <td></td> <td>Embedded content Tag</td> <td></td> <td></td> <img alt="Summary details of html5 common tags" > </tr> <tr>●<td></td> <td>Picture</td> Tag<td></td> <td> </td> </tr> <tr><iframe><td colspan="4"><strong>●</strong></td></iframe></tr>Frame<tr>Mark<td></td> <td></td> <td><a href="http://www.php.cn/css/css-rwd-images.html" target="_blank"><embed></embed></a></td>●<td></td>Embed tag</tr> <tr> <td></td> <td>##<object></object> </td> <td>● <a href="http://www.php.cn/css/css-rwd-frameworks.html" target="_blank"></a> </td>Object<td>Mark</td> <td> </td> </tr> <tr>##<param> <td></td>●<td></td>Parameter mark<td></td> <td></td> </tr> <tr><video><td></td>●<td></td> <td>Video<a href="http://www.php.cn/code/6707.html" target="_blank"> Tag</a> </td> <td></td></video></tr> <tr>&lt ;audio><td></td>●<td></td> <td>audio<a href="http://www.php.cn/code/6093.html" target="_blank">tag</a> </td> <td></td> </tr>##<source><tr> <td>●</td> <td>Source tag</td> <td> </td> <td></td>##<canvas></canvas> </tr> <tr>●<td></td>Cartographic tag<td></td> <td></td> <td></td> <map></map> </tr> <tr>●<td></td> <td>Map</td>Mark<td> <a href="http://www.php.cn/code/7891.html" target="_blank"> </a> </td> <td></td> <area> </tr> <tr>●<td></td>Area Marker<td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td>##Table mark</tr> <tr><td colspan="4"><strong>##<table> ●<tr>Table tag<td></td>Set the parameters of the table<td></td> <td></td> <caption> <td></td>●</caption> </tr> <tr>Table title<td></td>Make one column to fill in the table title<td></td> <td>##<colgroup></colgroup> </td> <td>●</td> </tr> <tr> <td> </td> <td></td>##<col> <td></td>●<td></td> </tr> <tr> <td></td> <td></td> </tr> <tbody> <td></td>●<td></td> <tr> <td></td> <td></td> <thread><td> </td>●<td></td> </thread> </tr> <tr> <td></td> <td>##</td> </tr> </tbody> <tfoot> <td>●</td> <td> </td> <tr> <td></td> <td></td> </tr> <tr> <td>●</td> <td>Table columns</td> </tr>Set the columns of the table<tr> <td> </td> <td></td> <td></td> <td>●</td> <td>Table columns</td> </tr>Set the columns of this table<tr> <td></td>##&lt ;th><td></td>●<td></td>Table header<td></td> is equal to <td>, but the text font will be bolder</td> </tr> <tr> <td></td> <td>Form tag</td> <td></td> <td>##<form></form> </td> </tr>●<tr><td colspan="4">Form tag<strong></strong>Determine the form Operation mode</td></tr> <tr> <td><fieldset></fieldset></td> <td>●</td> <td> </td> <td> </td> </tr> <tr>## <legend> <td></td>●<td></td> <td></td> <td></td> </legend> </tr> <tr> <input><td></td>●<td></td>Input label<td></td> <td></td> </tr>##<label><tr> <td>●</td> <td> </td> <td> </td> <td></td> </tr> <button><tr> <td>●</td> <td></td>Button<td></td> <td> </td> </tr> <tr> <td>&lt ;select></td> <td>●</td> <td>Select mark<a href="http://www.php.cn/code/5991.html" target="_blank"></a> </td> <td></td> </tr> <datalist><tr> <td>●</td> <td> </td> <td> </td> <td></td>##<optgroup></optgroup> </tr> <tr>●<td></td> <td></td> <td></td> <td></td> <option></option> </tr> <tr>●<td></td>Option<td></td> <td></td> <td>##<textarea></textarea> </td> </tr>●<tr> <td> </td> <td> </td> <td></td>##<keygen><td></td>●</keygen> </tr> <tr> <td></td> <td></td> <td></td> <output><td></td>●</output> </tr> <tr> <td></td> <td></td> <td></td> <progress>●</progress> </tr> <tr> <td></td> <td></td> <td>##<meter></meter> </td> <td>●</td> </tr> <tr> <td> </td> <td></td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td></td> <td></td> <td>Interactive elements</td> </tr> <tr> <td></td>##<details><td></td>●<td></td> <td></td> </details> </tr> <tr> <td colspan="4"><p><summary><strong></strong>●</summary></p></td> </tr> <tr> <td></td> <td>##<command></command> </td> <td>●</td> <td> </td> </tr> <tr> <td></td>##<menu> <td></td>●<td></td> <td></td> </menu> </tr> <tr> <td></td> <td>Other tags</td> <td></td> <td>##<script></script> </td> </tr>●<tr> <td> </td> <td> </td> <td></td> <td><noscript></noscript></td> </tr>●<tr><td colspan="4"> <strong></strong> </td></tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td></td> <td>Remark: </td> <td></td> 1. ● indicates that the mark is a containment mark and needs to end with the mark . <td></td>2. o means that the tag is an empty tag and does not require an end tag. </tr></datalist></button></label> </tfoot> </table></strong></td></tr></source></var></a></pre>
Mark Type Meaning Introduction
File tag
Root file tag Let the browser know that this is an HTML file
# #META tag
begins provides overall file information

The above is the detailed content of Summary details of html5 common 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
The Connection Between H5 and HTML5: Similarities and DifferencesThe Connection Between H5 and HTML5: Similarities and DifferencesApr 24, 2025 am 12:01 AM

H5 and HTML5 are different concepts: HTML5 is a version of HTML, containing new elements and APIs; H5 is a mobile application development framework based on HTML5. HTML5 parses and renders code through the browser, while H5 applications need to run containers and interact with native code through JavaScript.

The Building Blocks of H5 Code: Key Elements and Their PurposeThe Building Blocks of H5 Code: Key Elements and Their PurposeApr 23, 2025 am 12:09 AM

Key elements of HTML5 include,,,,,, etc., which are used to build modern web pages. 1. Define the head content, 2. Used to navigate the link, 3. Represent the content of independent articles, 4. Organize the page content, 5. Display the sidebar content, 6. Define the footer, these elements enhance the structure and functionality of the web page.

HTML5 and H5: Understanding the Common UsageHTML5 and H5: Understanding the Common UsageApr 22, 2025 am 12:01 AM

There is no difference between HTML5 and H5, which is the abbreviation of HTML5. 1.HTML5 is the fifth version of HTML, which enhances the multimedia and interactive functions of web pages. 2.H5 is often used to refer to HTML5-based mobile web pages or applications, and is suitable for various mobile devices.

HTML5: The Building Blocks of the Modern Web (H5)HTML5: The Building Blocks of the Modern Web (H5)Apr 21, 2025 am 12:05 AM

HTML5 is the latest version of the Hypertext Markup Language, standardized by W3C. HTML5 introduces new semantic tags, multimedia support and form enhancements, improving web structure, user experience and SEO effects. HTML5 introduces new semantic tags, such as, ,, etc., to make the web page structure clearer and the SEO effect better. HTML5 supports multimedia elements and no third-party plug-ins are required, improving user experience and loading speed. HTML5 enhances form functions and introduces new input types such as, etc., which improves user experience and form verification efficiency.

H5 Code: Writing Clean and Efficient HTML5H5 Code: Writing Clean and Efficient HTML5Apr 20, 2025 am 12:06 AM

How to write clean and efficient HTML5 code? The answer is to avoid common mistakes by semanticizing tags, structured code, performance optimization and avoiding common mistakes. 1. Use semantic tags such as, etc. to improve code readability and SEO effect. 2. Keep the code structured and readable, using appropriate indentation and comments. 3. Optimize performance by reducing unnecessary tags, using CDN and compressing code. 4. Avoid common mistakes, such as the tag not closed, and ensure the validity of the code.

H5: How It Enhances User Experience on the WebH5: How It Enhances User Experience on the WebApr 19, 2025 am 12:08 AM

H5 improves web user experience with multimedia support, offline storage and performance optimization. 1) Multimedia support: H5 and elements simplify development and improve user experience. 2) Offline storage: WebStorage and IndexedDB allow offline use to improve the experience. 3) Performance optimization: WebWorkers and elements optimize performance to reduce bandwidth consumption.

Deconstructing H5 Code: Tags, Elements, and AttributesDeconstructing H5 Code: Tags, Elements, and AttributesApr 18, 2025 am 12:06 AM

HTML5 code consists of tags, elements and attributes: 1. The tag defines the content type and is surrounded by angle brackets, such as. 2. Elements are composed of start tags, contents and end tags, such as contents. 3. Attributes define key-value pairs in the start tag, enhance functions, such as. These are the basic units for building web structure.

Understanding H5 Code: The Fundamentals of HTML5Understanding H5 Code: The Fundamentals of HTML5Apr 17, 2025 am 12:08 AM

HTML5 is a key technology for building modern web pages, providing many new elements and features. 1. HTML5 introduces semantic elements such as, , etc., which enhances web page structure and SEO. 2. Support multimedia elements and embed media without plug-ins. 3. Forms enhance new input types and verification properties, simplifying the verification process. 4. Offer offline and local storage functions to improve web page performance and user experience.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment