html5中article標籤的講解

來源:互聯網
上載者:User

<article> 標籤是用來定義一些來自外部的內容。比如一些網友的投稿或是新聞記者的文章或是摘取某部落格、論壇的資訊,以及其他媒介資料。

使用者看到的內容並不是對應本網站的一個具體的頁面,<article>是可以嵌套使用的,內外層內容相關聯

範例程式碼:

<html>
<body>
<article>
<h5>HTML5 項目</h5>
<p>HTML5是用於修正現在html的下一個網頁規範</p>
<p>HTML5是全球資訊網結構方面的標準</p>
</article>
</body>
</html>

<article> 標籤支援HTML5中新的標準屬性。

class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title

<article> 標籤支援事件屬性。

onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.