- Mastering Responsive Web Design
- Ricardo Zea
- 150字
- 2021-07-16 20:33:20
The <article> element
The HTML Article Element (
<article>
) represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable, e.g., in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, or any other independent item of content. Each<article>
should be identified, typically by including a heading (h1
-h6
element) as a child of the<article>
element.
Here are a few important points to remember about the <article>
element:
- Any self-contained content should be placed inside the
<article>
element.Self-contained means that if we take the
<article>
element and everything inside it out into another context, all the content is self-explanatory and does not need anything else around it to be understood. - An
<article>
can be nested inside another<article>
element. - There can be more than one
<article>
element in a single page.
Consider the following example:
<body> <main class="main-container" role="main"> <article class="article-container flex-container"> Content goes here </article> </main> </body>
- Mobile Application Development:JavaScript Frameworks
- Quarkus實踐指南:構建新一代的Kubernetes原生Java微服務
- Expert Android Programming
- 小學生C++創意編程(視頻教學版)
- Arduino家居安全系統構建實戰
- 微服務架構深度解析:原理、實踐與進階
- Learning AngularJS for .NET Developers
- 軟件供應鏈安全:源代碼缺陷實例剖析
- Arduino電子設計實戰指南:零基礎篇
- XML程序設計(第二版)
- Unity虛擬現實開發圣典
- Splunk Developer's Guide(Second Edition)
- Getting Started with Backbone Marionette
- Learning Unity Physics
- SQL優化核心思想