• <thead id="aa6mg"></thead>
      <li id="aa6mg"><legend id="aa6mg"></legend></li>
      <bdo id="aa6mg"><tbody id="aa6mg"></tbody></bdo>

    1. <i id="aa6mg"></i>
    2. 本文參考文章1<\/a> 本文參考文章2<\/a><\/div>

      命名規(guī)范<\/h1>
      1. 命名只能是[a-zA-Z0-9]、連字符(-)、下劃線(_)<\/li>
      2. 命名必須以字母開(kāi)頭命名、單詞間用下?lián)Q線(main_left)連接或駝峰命名(mainLeft、MainLeft)<\/li>
      3. 語(yǔ)義化命名{側(cè)邊欄:sidebar,主要內(nèi)容:main}<\/li> <\/ol> <\/article><\/section>

        html標(biāo)簽語(yǔ)義化<\/h1>
        header元素<\/dt>
        描述:“網(wǎng)頁(yè)”或“section”的頁(yè)頭,一般包括h1-h6、hgroup、nav、logo相關(guān)等。<\/dd>
        注意:沒(méi)有個(gè)數(shù)限制,如果hgroup或h1-h6自己就能工作的很好,那就不要用header。<\/dd>
        示例:header>hgroup>h1+h2<\/dd> <\/dl>
        footer元素<\/dt>
        描述:“網(wǎng)頁(yè)”或“section”的頁(yè)腳,一般包括版權(quán)等。<\/dd>
        注意:沒(méi)有個(gè)數(shù)限制。<\/dd>
        示例:footer{copyright©2013}<\/dd> <\/dl>
        hgroup元素<\/dt>
        描述:“網(wǎng)頁(yè)”或“section”的標(biāo)題,或組合h1-h6。<\/dd>
        注意:連續(xù)多個(gè)h1-h6標(biāo)簽需要用hgroup,只有一個(gè)h1-h6不需要hgroup,<\/dd>
        示例:hgroup>h1+h2<\/dd> <\/dl>
        nav元素<\/dt>
        描述:定義主導(dǎo)航。<\/dd>
        注意:除主導(dǎo)航外不建議使用。<\/dd>
        示例:nav>ol>li{menu$}*3<\/dd> <\/dl>
        aside元素<\/dt>
        描述:在article內(nèi)表示主要內(nèi)容的附屬信息,在article外常用于側(cè)邊欄。<\/dd>
        示例:section>article+aside<\/dd> <\/dl>
        section元素<\/dt>
        描述:代表文檔中一個(gè)分組或分段。<\/dd>
        注意:通常需要包含標(biāo)題,可以用nav、article等的就不要用section,沒(méi)有實(shí)際意義就用div。<\/dd>
        示例:section>h1+article<\/dd> <\/dl>
        article元素<\/dt>
        描述:代表在頁(yè)面或網(wǎng)站中自成一體的內(nèi)容,為了獨(dú)立開(kāi)發(fā)或重用;例如論壇帖子,博客文章。<\/dd>
        注意:通常需要包含標(biāo)題。<\/dd>
        示例:section>h1+article*2>h2{獨(dú)立$}<\/dd> <\/dl>
        address元素<\/dt>
        描述:常用語(yǔ)聯(lián)系信息,郵編地址等。<\/dd>
        示例:address>ul>li{地址$}*2 <\/dd> <\/dl>
        h1-h6元素<\/dt>
        描述:標(biāo)題。<\/dd>
        注意:因?yàn)閔group、section、article的出現(xiàn),允許一個(gè)頁(yè)面里出現(xiàn)多次h1。<\/dd>
        示例:section>h1{section標(biāo)題}+article>h1{article標(biāo)題}<\/dd> <\/dl>
        div元素<\/dt>
        描述:一個(gè)區(qū)塊,沒(méi)有語(yǔ)義。<\/dd> <\/dl>
        dl元素<\/dt>
        描述:自定義列表,與dt、dd組合使用。<\/dd>
        注意:常用于名詞解釋,描述。<\/dd> <\/dl>
        ol元素<\/dt>
        描述:有序列表,與li組合使用。<\/dd> <\/dl>
        ul元素<\/dt>
        描述:無(wú)序列表,與li組合使用。<\/dd> <\/dl>
        time元素<\/dt>
        描述:定義發(fā)布時(shí)間。<\/dd>
        注意:time包括記起識(shí)別時(shí)間戳屬性(datetime=\"2012-12-25\"),pubdata標(biāo)記(pubdata=\"true\")屬性,文本內(nèi)容<\/dd> <\/dl>
        a元素(anchor 的縮寫)<\/dt>
        描述:定義超鏈接。<\/dd> <\/dl>
        em元素(emphasis 的縮寫)<\/dt>
        描述:句意強(qiáng)調(diào)或局部強(qiáng)調(diào),改變局部側(cè)重點(diǎn)。<\/dd> <\/dl>
        strong元素<\/dt>
        描述:表示重要,凸顯關(guān)鍵語(yǔ)句。<\/dd> <\/dl>
        p元素<\/dt>
        描述:定義段落。<\/dd> <\/dl>
        b元素(bold 的縮寫)<\/dt>
        描述:表示加粗,突出顯示,無(wú)強(qiáng)調(diào)作用,常用于文檔概要,評(píng)論中的關(guān)鍵字。<\/dd> <\/dl>
        i元素(italic 的縮寫)<\/dt>
        描述:表示傾斜或不同于文章觀點(diǎn)的文本,類似于話外音。<\/dd> <\/dl>
        code元素<\/dt>
        描述:定義計(jì)算機(jī)代碼文本。<\/dd> <\/dl>
        q元素(quote 的縮寫)<\/dt>
        描述:定義短的引用內(nèi)容。<\/dd> <\/dl>
        blockquote元素<\/dt>
        描述:定義長(zhǎng)的引用內(nèi)容。<\/dd> <\/dl>
        cite元素<\/dt>
        描述:定義引用內(nèi)容標(biāo)題。<\/dd> <\/dl>
        u元素(underline 的縮寫)<\/dt>
        描述:定義下劃線。<\/dd> <\/dl>
        abbr元素(abbreviation 的縮寫)<\/dt>
        描述:定義一個(gè)縮寫文本,建議在abbr的title中填寫全稱。<\/dd> <\/dl>
        dfn元素(defining instance 的縮寫)<\/dt>
        描述:定義一個(gè)術(shù)語(yǔ)。<\/dd> <\/dl>
        var元素<\/dt>
        描述:定義計(jì)算機(jī)代碼中的變量。<\/dd> <\/dl>
        samp元素(sample 的縮寫)<\/dt>
        描述:由程序輸出的示例文本。<\/dd> <\/dl>
        kbd元素(keyboard 的縮寫)<\/dt>
        描述:由鍵盤輸入文本。<\/dd> <\/dl>
        wbr元素(word break 的縮寫)<\/dt>
        描述:定義換行的時(shí)機(jī)。<\/dd> <\/dl>
        span元素<\/dt>
        描述:一個(gè)行內(nèi)元素區(qū)域,沒(méi)有語(yǔ)義。<\/dd> <\/dl>
        br元素<\/dt>
        描述:定義一個(gè)換行。<\/dd> <\/dl>
        pre元素<\/dt>
        描述:預(yù)格式化文本,會(huì)保留空格和換行。<\/dd> <\/dl>
        hr元素<\/dt>
        描述:分割線。<\/dd> <\/dl>
        figure元素<\/dt>
        描述:一塊獨(dú)立的內(nèi)容,該內(nèi)容被移除不會(huì)影響周圍內(nèi)容,常用于統(tǒng)計(jì),圖,音頻、視頻、代碼片段等。<\/dd> <\/dl>
        figcaption元素<\/dt>
        描述:當(dāng)figure需要一個(gè)標(biāo)題時(shí),用且只能用figcaption定義。<\/dd> <\/dl>
        img元素<\/dt>
        描述:引入一張圖片。<\/dd> <\/dl>
        iframe元素<\/dt>
        描述:引入一張網(wǎng)頁(yè)。<\/dd> <\/dl>
        canvas元素<\/dt>
        描述:用于繪畫。<\/dd> <\/dl>
        video元素<\/dt>
        描述:引入視頻。<\/dd> <\/dl>
        audio元素<\/dt>
        描述:引入音頻。<\/dd> <\/dl> <\/article><\/section><\/body><\/html><\/pre> <\/p>

        ?<\/p> "}

        国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

        Home Web Front-end HTML Tutorial [Html Css] css naming convention, html tag semantics_html/css_WEB-ITnose

        [Html Css] css naming convention, html tag semantics_html/css_WEB-ITnose

        Jun 24, 2016 pm 12:34 PM

        <!doctype html><html lang="en"><head>    <meta charset="UTF-8">    <title>css命名規(guī)范、html標(biāo)簽語(yǔ)義化</title>    <style>        dl,li { font: 12px/24px 'simsun';}        dl dt { font-weight: bold; }    </style></head><body><div class="link">    <a href="http://www.html5jscss.com/html5-semantics-section-30.html">本文參考文章1</a>    <a href="http://www.html5jscss.com/html5-semantics-rich-60.html">本文參考文章2</a></div><section>    <h1>命名規(guī)范</h1>    <article>        <ol>            <li>命名只能是[a-zA-Z0-9]、連字符(-)、下劃線(_)</li>            <li>命名必須以字母開(kāi)頭命名、單詞間用下?lián)Q線(main_left)連接或駝峰命名(mainLeft、MainLeft)</li>            <li>語(yǔ)義化命名{側(cè)邊欄:sidebar,主要內(nèi)容:main}</li>        </ol>    </article></section><section>    <h1>html標(biāo)簽語(yǔ)義化</h1>    <article>        <dl>            <dt>header元素</dt>            <dd>描述:“網(wǎng)頁(yè)”或“section”的頁(yè)頭,一般包括h1-h6、hgroup、nav、logo相關(guān)等。</dd>            <dd>注意:沒(méi)有個(gè)數(shù)限制,如果hgroup或h1-h6自己就能工作的很好,那就不要用header。</dd>            <dd>示例:header>hgroup>h1+h2</dd>        </dl>        <dl>            <dt>footer元素</dt>            <dd>描述:“網(wǎng)頁(yè)”或“section”的頁(yè)腳,一般包括版權(quán)等。</dd>            <dd>注意:沒(méi)有個(gè)數(shù)限制。</dd>            <dd>示例:footer{copyright&copy;2013}</dd>        </dl>        <dl>            <dt>hgroup元素</dt>            <dd>描述:“網(wǎng)頁(yè)”或“section”的標(biāo)題,或組合h1-h6。</dd>            <dd>注意:連續(xù)多個(gè)h1-h6標(biāo)簽需要用hgroup,只有一個(gè)h1-h6不需要hgroup,</dd>            <dd>示例:hgroup>h1+h2</dd>        </dl>        <dl>            <dt>nav元素</dt>            <dd>描述:定義主導(dǎo)航。</dd>            <dd>注意:除主導(dǎo)航外不建議使用。</dd>            <dd>示例:nav>ol>li{menu$}*3</dd>        </dl>        <dl>            <dt>aside元素</dt>            <dd>描述:在article內(nèi)表示主要內(nèi)容的附屬信息,在article外常用于側(cè)邊欄。</dd>            <dd>示例:section>article+aside</dd>        </dl>        <dl>            <dt>section元素</dt>            <dd>描述:代表文檔中一個(gè)分組或分段。</dd>            <dd>注意:通常需要包含標(biāo)題,可以用nav、article等的就不要用section,沒(méi)有實(shí)際意義就用div。</dd>            <dd>示例:section>h1+article</dd>        </dl>        <dl>            <dt>article元素</dt>            <dd>描述:代表在頁(yè)面或網(wǎng)站中自成一體的內(nèi)容,為了獨(dú)立開(kāi)發(fā)或重用;例如論壇帖子,博客文章。</dd>            <dd>注意:通常需要包含標(biāo)題。</dd>            <dd>示例:section>h1+article*2>h2{獨(dú)立$}</dd>        </dl>        <dl>            <dt>address元素</dt>            <dd>描述:常用語(yǔ)聯(lián)系信息,郵編地址等。</dd>            <dd>示例:address>ul>li{地址$}*2 </dd>        </dl>        <dl>            <dt>h1-h6元素</dt>            <dd>描述:標(biāo)題。</dd>            <dd>注意:因?yàn)閔group、section、article的出現(xiàn),允許一個(gè)頁(yè)面里出現(xiàn)多次h1。</dd>            <dd>示例:section>h1{section標(biāo)題}+article>h1{article標(biāo)題}</dd>        </dl>        <dl>            <dt>div元素</dt>            <dd>描述:一個(gè)區(qū)塊,沒(méi)有語(yǔ)義。</dd>        </dl>        <dl>            <dt>dl元素</dt>            <dd>描述:自定義列表,與dt、dd組合使用。</dd>            <dd>注意:常用于名詞解釋,描述。</dd>        </dl>        <dl>            <dt>ol元素</dt>            <dd>描述:有序列表,與li組合使用。</dd>        </dl>        <dl>            <dt>ul元素</dt>            <dd>描述:無(wú)序列表,與li組合使用。</dd>        </dl>        <dl>            <dt>time元素</dt>            <dd>描述:定義發(fā)布時(shí)間。</dd>            <dd>注意:time包括記起識(shí)別時(shí)間戳屬性(datetime="2012-12-25"),pubdata標(biāo)記(pubdata="true")屬性,文本內(nèi)容</dd>        </dl>        <dl>            <dt>a元素(anchor 的縮寫)</dt>            <dd>描述:定義超鏈接。</dd>        </dl>        <dl>            <dt>em元素(emphasis 的縮寫)</dt>            <dd>描述:句意強(qiáng)調(diào)或局部強(qiáng)調(diào),改變局部側(cè)重點(diǎn)。</dd>        </dl>        <dl>            <dt>strong元素</dt>            <dd>描述:表示重要,凸顯關(guān)鍵語(yǔ)句。</dd>        </dl>        <dl>            <dt>p元素</dt>            <dd>描述:定義段落。</dd>        </dl>        <dl>            <dt>b元素(bold 的縮寫)</dt>            <dd>描述:表示加粗,突出顯示,無(wú)強(qiáng)調(diào)作用,常用于文檔概要,評(píng)論中的關(guān)鍵字。</dd>        </dl>        <dl>            <dt>i元素(italic 的縮寫)</dt>            <dd>描述:表示傾斜或不同于文章觀點(diǎn)的文本,類似于話外音。</dd>        </dl>        <dl>            <dt>code元素</dt>            <dd>描述:定義計(jì)算機(jī)代碼文本。</dd>        </dl>        <dl>            <dt>q元素(quote 的縮寫)</dt>            <dd>描述:定義短的引用內(nèi)容。</dd>        </dl>        <dl>            <dt>blockquote元素</dt>            <dd>描述:定義長(zhǎng)的引用內(nèi)容。</dd>        </dl>        <dl>            <dt>cite元素</dt>            <dd>描述:定義引用內(nèi)容標(biāo)題。</dd>        </dl>        <dl>            <dt>u元素(underline 的縮寫)</dt>            <dd>描述:定義下劃線。</dd>        </dl>        <dl>            <dt>abbr元素(abbreviation 的縮寫)</dt>            <dd>描述:定義一個(gè)縮寫文本,建議在abbr的title中填寫全稱。</dd>        </dl>        <dl>            <dt>dfn元素(defining instance 的縮寫)</dt>            <dd>描述:定義一個(gè)術(shù)語(yǔ)。</dd>        </dl>        <dl>            <dt>var元素</dt>            <dd>描述:定義計(jì)算機(jī)代碼中的變量。</dd>        </dl>        <dl>            <dt>samp元素(sample 的縮寫)</dt>            <dd>描述:由程序輸出的示例文本。</dd>        </dl>        <dl>            <dt>kbd元素(keyboard 的縮寫)</dt>            <dd>描述:由鍵盤輸入文本。</dd>        </dl>        <dl>            <dt>wbr元素(word break 的縮寫)</dt>            <dd>描述:定義換行的時(shí)機(jī)。</dd>        </dl>        <dl>            <dt>span元素</dt>            <dd>描述:一個(gè)行內(nèi)元素區(qū)域,沒(méi)有語(yǔ)義。</dd>        </dl>        <dl>            <dt>br元素</dt>            <dd>描述:定義一個(gè)換行。</dd>        </dl>        <dl>            <dt>pre元素</dt>            <dd>描述:預(yù)格式化文本,會(huì)保留空格和換行。</dd>        </dl>        <dl>            <dt>hr元素</dt>            <dd>描述:分割線。</dd>        </dl>        <dl>            <dt>figure元素</dt>            <dd>描述:一塊獨(dú)立的內(nèi)容,該內(nèi)容被移除不會(huì)影響周圍內(nèi)容,常用于統(tǒng)計(jì),圖,音頻、視頻、代碼片段等。</dd>        </dl>        <dl>            <dt>figcaption元素</dt>            <dd>描述:當(dāng)figure需要一個(gè)標(biāo)題時(shí),用且只能用figcaption定義。</dd>        </dl>        <dl>            <dt>img元素</dt>            <dd>描述:引入一張圖片。</dd>        </dl>        <dl>            <dt>iframe元素</dt>            <dd>描述:引入一張網(wǎng)頁(yè)。</dd>        </dl>        <dl>            <dt>canvas元素</dt>            <dd>描述:用于繪畫。</dd>        </dl>        <dl>            <dt>video元素</dt>            <dd>描述:引入視頻。</dd>        </dl>        <dl>            <dt>audio元素</dt>            <dd>描述:引入音頻。</dd>        </dl>    </article></section></body></html>

        ?

        Statement of this Website
        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

        Hot AI Tools

        Undress AI Tool

        Undress AI Tool

        Undress images for free

        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.

        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

        Notepad++7.3.1

        Notepad++7.3.1

        Easy-to-use and free code editor

        SublimeText3 Chinese version

        SublimeText3 Chinese version

        Chinese version, very easy to use

        Zend Studio 13.0.1

        Zend Studio 13.0.1

        Powerful PHP integrated development environment

        Dreamweaver CS6

        Dreamweaver CS6

        Visual web development tools

        SublimeText3 Mac version

        SublimeText3 Mac version

        God-level code editing software (SublimeText3)

        Hot Topics

        PHP Tutorial
        1502
        276
        Implementing Clickable Buttons Using the HTML button Element Implementing Clickable Buttons Using the HTML button Element Jul 07, 2025 am 02:31 AM

        To use HTML button elements to achieve clickable buttons, you must first master its basic usage and common precautions. 1. Create buttons with tags and define behaviors through type attributes (such as button, submit, reset), which is submitted by default; 2. Add interactive functions through JavaScript, which can be written inline or bind event listeners through ID to improve maintenance; 3. Use CSS to customize styles, including background color, border, rounded corners and hover/active status effects to enhance user experience; 4. Pay attention to common problems: make sure that the disabled attribute is not enabled, JS events are correctly bound, layout occlusion, and use the help of developer tools to troubleshoot exceptions. Master this

        Configuring Document Metadata Within the HTML head Element Configuring Document Metadata Within the HTML head Element Jul 09, 2025 am 02:30 AM

        Metadata in HTMLhead is crucial for SEO, social sharing, and browser behavior. 1. Set the page title and description, use and keep it concise and unique; 2. Add OpenGraph and Twitter card information to optimize social sharing effects, pay attention to the image size and use debugging tools to test; 3. Define the character set and viewport settings to ensure multi-language support is adapted to the mobile terminal; 4. Optional tags such as author copyright, robots control and canonical prevent duplicate content should also be configured reasonably.

        Best HTML tutorial for beginners in 2025 Best HTML tutorial for beginners in 2025 Jul 08, 2025 am 12:25 AM

        TolearnHTMLin2025,chooseatutorialthatbalanceshands-onpracticewithmodernstandardsandintegratesCSSandJavaScriptbasics.1.Prioritizehands-onlearningwithstep-by-stepprojectslikebuildingapersonalprofileorbloglayout.2.EnsureitcoversmodernHTMLelementssuchas,

        HTML for email templates tutorial HTML for email templates tutorial Jul 10, 2025 pm 02:01 PM

        How to make HTML mail templates with good compatibility? First, you need to build a structure with tables to avoid using div flex or grid layout; secondly, all styles must be inlined and cannot rely on external CSS; then the picture should be added with alt description and use a public URL, and the buttons should be simulated with a table or td with background color; finally, you must test and adjust the details on multiple clients.

        How to associate captions with images or media using the html figure and figcaption elements? How to associate captions with images or media using the html figure and figcaption elements? Jul 07, 2025 am 02:30 AM

        Using HTML sums allows for intuitive and semantic clarity to add caption text to images or media. 1. Used to wrap independent media content, such as pictures, videos or code blocks; 2. It is placed as its explanatory text, and can be located above or below the media; 3. They not only improve the clarity of the page structure, but also enhance accessibility and SEO effect; 4. When using it, you should pay attention to avoid abuse, and apply to content that needs to be emphasized and accompanied by description, rather than ordinary decorative pictures; 5. The alt attribute that cannot be ignored, which is different from figcaption; 6. The figcaption is flexible and can be placed at the top or bottom of the figure as needed. Using these two tags correctly helps to build semantic and easy to understand web content.

        How to handle forms submission in HTML without a server? How to handle forms submission in HTML without a server? Jul 09, 2025 am 01:14 AM

        When there is no backend server, HTML form submission can still be processed through front-end technology or third-party services. Specific methods include: 1. Use JavaScript to intercept form submissions to achieve input verification and user feedback, but the data will not be persisted; 2. Use third-party serverless form services such as Formspree to collect data and provide email notification and redirection functions; 3. Use localStorage to store temporary client data, which is suitable for saving user preferences or managing single-page application status, but is not suitable for long-term storage of sensitive information.

        What are the most commonly used global attributes in html? What are the most commonly used global attributes in html? Jul 10, 2025 am 10:58 AM

        class, id, style, data-, and title are the most commonly used global attributes in HTML. class is used to specify one or more class names to facilitate style setting and JavaScript operations; id provides unique identifiers for elements, suitable for anchor jumps and JavaScript control; style allows for inline styles to be added, suitable for temporary debugging but not recommended for large-scale use; data-properties are used to store custom data, which is convenient for front-end and back-end interaction; title is used to add mouseover prompts, but its style and behavior are limited by the browser. Reasonable selection of these attributes can improve development efficiency and user experience.

        Implementing Native Lazy Loading for Images in HTML Implementing Native Lazy Loading for Images in HTML Jul 12, 2025 am 12:48 AM

        Native lazy loading is a built-in browser function that enables lazy loading of pictures by adding loading="lazy" attribute to the tag. 1. It does not require JavaScript or third-party libraries, and is used directly in HTML; 2. It is suitable for pictures that are not displayed on the first screen below the page, picture gallery scrolling add-ons and large picture resources; 3. It is not suitable for pictures with first screen or display:none; 4. When using it, a suitable placeholder should be set to avoid layout jitter; 5. It should optimize responsive image loading in combination with srcset and sizes attributes; 6. Compatibility issues need to be considered. Some old browsers do not support it. They can be used through feature detection and combined with JavaScript solutions.

        See all articles