HTML & CSS Wiki
Register
Advertisement

The HTML <article></article> element was introduced in HTML5. It defines external content. The external content could be a news-article from an external provider, or text from a web log (blog), or text from a forum, or any other content from an external source. This element must not be a descendant of an <address> element. When <article> elements are nested, the inner ones represent articles related to the outer one. For example, the comments of a blog post can be <article> elements nested in the one representing the blog post. Author information of an <article> element can be provided through the <address> element, but it doesn't apply to nested <article> elements. The publication date and time of an <article> element can be described using the pubdate attribute of a <time> element.


Attributes[]

See Global HTML Attributes and Standard HTML5 Attributes.


HTML example:

<article>
<a href="http://blog.netscape.com/2007/12/28/end-of-support-for-netscape-web-browsers">Netscape is dead</a>
<br />
AOL has a long history on the Internet, being one of the first companies to really get people online.....
</article> 

Rendering[]

The article element by itself does not have a visual rendering, other than being a block element. It does however influence the rendering of the <h1> element, see that page for more information.

Typical CSS representation[]

article {
  display: block;
}

Support[]

Internet ExplorerIElogo9.0
FirefoxFFlogo4.0
ChromeChromelogo6.0
SafariSafarilogo5.0
OperaOperalogo11.1

Coding rules[]

The <article> element belongs to the Flow content category.

External Links[]


Advertisement