search
HomeWeb Front-endHTML TutorialSummary of all HTML5 tags and explanation of tag meanings

This article mainly introduces the summary of all HTML5 tags and the explanation of tag meanings. This article summarizes the structure tags, multimedia interaction tags, Web application tags, annotation tags, other tags, etc. Friends who need it can refer to it

Structure tag: (block element) Meaningful p

Tag defines an article
Tag defines a page or an area Head
& lt; nav & gt; mark definition navigation link
& lt; section & gt; mark a region
& lt; aside & gt; marked the side bar of the page content part
& lt; hgroup & gt; Information about a block in
The tag defines a set of media content and their titles
The tag defines the title of the figure element.
Mark defines the bottom of a page or an area
Mark defines a dialog box (conversation box) similar to WeChat

Multimedia interactive label

Web application tag

Command list
menu command List tag FF (embedded system)
menu tag defines a command button
status label (real-time status display: air pressure, temperature) C, O
status label (Task process: installation, loading) C, F, O
Define a drop-down list for the input tag, and use the option F, O
tag to define the detailed content of an element, and use dt , dd C

Comment tag

Tag definition comment or phonetic symbol
Tell browsers that do not support Ruby elements how to display it
Tag defines the comment content text for ruby ​​

Other tags

Tag defines a generated key value (encrypted) in the form Information transmission) O, F
mark defines marked text (yellow selected state)
mark defines some output types, calculates form results and cooperates with oninput events

Deleted HTML tags

Purely expressive elements:
basefont, big, center, font, s, strike, tt, u;

Have a negative impact on usability Elements:
frame, frameset, noframes;

Confusing elements:
acronym, applet, isindex, dir

Redefined HTML tags

Represents inline text, usually in bold, not conveyed to indicate important meaning
Represents inline text, usually in italics, not conveyed to indicate important meaning

Can be used with details and figure. The definition contains text. Dialog can also be used.
Can be used with details and figure to summarize details. Dialog can also be used.

indicates the end of the topic. , instead of horizontal lines, although the display is the same
Redefine the menu of the user interface, use it with commond or menuitem
to represent small fonts, such as printing comments or legal terms

Sample code:

XML/HTML CodeCopy content to clipboard

<xmp>  
<!doctype html>  
<html>  
    <head>  
        <style>  
              
              
            header{height:150px;background:#ABCDEF}   
            nav{height:30px;background:#ff9900;margin-top:100px}   
            nav ul li{width:100px;height:30px;float:left;line-height:30px}   
              
            div{margin-top:10px;height:1000px;}   
            section{height:1000px;background:#ABCDEF;width:70%;float:left}   
            article{background:#F90;width:500px;margin:0 auto;text-align:center}   
              
            aside{height:1000px;background:#ABCDEF;width:28%;float:right}   
              
            footer{height:100px;background:#ABCDEF;clear:both;margin-top:10px}   
        </style>  
    </head>  
    <body>  
        <header>  
            <p>这是一个header标签</p>  
            <nav>  
                <ul>  
                    <li>首页</li>  
                    <li>起夜</li>  
                    <li>论坛</li>  
                    <li>商城</li>  
                    <li>社区</li>  
                </ul>  
            </nav>  
        </header>  
        <div>  
            <section>  
                <p>这是一个section标签</p>  
                <article>  
                    <h2 id="春晓">春晓</h2>  
                    <p>  
                    春眠不觉晓,<br />  
                    处处蚊子咬,<br />  
                    打上敌敌畏,<br />  
                    不至死多少。<br />  
                    </p>  
                  
                </article>  
                <hr />  
                <article>  
                    <h2 id="上学歌">上学歌</h2>  
                    <p>  
                    太阳当空照,<br />  
                    花儿对我笑,<br />  
                    小鸟说早早早,你为什么背上小书包?<br />  
                    我要炸学校老师不知道,一拉线,赶快跑,<br />  
                    轰的一声,学校炸没了。<br />  
                    </p>  
                  
                </article>  
                <hr />  
                <figure>  
                    <figcaption>UFO</figcaption>  
                    <p>不明飞行物 Unknown Flying Object</p>  
                </figure>  
                <figure>  
                     <dt>DDS</dt>  
                     <dd>大屌丝</dd>  
                </figure>  
                <hr />  
                <dialog>  
                    <dt>唐僧:悟空,你又调皮了,观音姐姐的月光宝盒怎么能乱扔呢?</dt>  
                    <dd>悟空:...(看着)</dd>  
                    <dt>唐僧:乱扔是不对的,砸到小朋友怎么办?就算砸不到小朋友,砸到花花草草也是不好的嘛</dt>  
                    <dd>悟空:...(纠结)</dd>  
                    <dt>唐僧:悟空你想要么?想要你就告诉我呀,你不告诉我怎么知道你想要呢?。。。。</dt>  
                    <dd>悟空:我靠!(一棍子抡上去!)</dd>  
                </dialog>  
                <hr />  
                <menu>  
                    <li>点击</li>  
                    <li>右键单击</li>  
                </menu>  
                <hr />  
                <span contextmenu="candan">右键单击我试试</span>  
                <menu type="context" id="candan">  
                    <menuitem label="菜单一" onclick="alert(&#39;我是一个寂寞&#39;)" icon="http://www.baidu.com/img/baidu_sylogo1.gif"></menuitem>  
                </menu>  
                <hr />  
                <meter min="0" max="10" value="5" low="3" high="7" ></meter>  
                <progress max="100" value="0" id="pro"></progress>  
                <script>  
                    var pro =document.getElementByIdx_x_x_x(&#39;pro&#39;);   
                    setInterval(function(){   
                        pro.value+=1;   
                    },100);   
                </script>  
                <hr />  
                <details>  
                    <dt>这是一个问题?</dt>  
                    <dd>to be or not to be</dd>  
                    <dt>这是一个问题?</dt>  
                    <dd>to be or not to be</dd>  
                    <dt>这是一个问题?</dt>  
                    <dd>to be or not to be</dd>  
                </details>  
                <hr />  
                <ruby>夼<rp>(</rp><rt>kuang</rt><rp>)</rp></ruby>  
                <hr />  
                女人<mark>最喜欢做的事情</mark>就是逛街。。。吃零食。。逛街。。吃零食,偶尔还会呜呜的哭,   
                于是总结了下女人:逛吃逛吃逛吃逛吃。。。呜呜呜~·   
            </section>  
            <aside>  
                <p>这是一个aside标签</p>  
                <hgroup>  
                    <h3 id="女生宿舍为何频频被盗">女生宿舍为何频频被盗</h3>  
                    <h3 id="两百头母猪为何半夜惨死">两百头母猪为何半夜惨死</h3>  
                    <h3 id="是人性的扭曲">是人性的扭曲?</h3>  
                    <h3 id="还是道德的沦丧">还是道德的沦丧!</h3>  
                </hgroup>  
            </aside>  
        </div>  
        <footer>  
            <p>这是一个footer标签</p>  
            <hr />  
            <small>法律条文</small>  
            <small>联系我们</small>  
            <small>客户意见</small>  
            <small>商户合作</small>  
        </footer>  
    </body>  
</html>  
</xmp>

The above is the detailed content of Summary of all HTML5 tags and explanation of tag meanings. 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
HTML as a Markup Language: Its Function and PurposeHTML as a Markup Language: Its Function and PurposeApr 22, 2025 am 12:02 AM

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 19, 2025 am 12:02 AM

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

HTML vs. CSS vs. JavaScript: A Comparative OverviewHTML vs. CSS vs. JavaScript: A Comparative OverviewApr 16, 2025 am 12:04 AM

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTML: Is It a Programming Language or Something Else?HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AM

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML: Building the Structure of Web PagesHTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AM

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

From Text to Websites: The Power of HTMLFrom Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AM

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

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

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

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),

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor