Fandom

HTML & CSS Wiki

Article

649pages on
this wiki
Add New Page
Comments0 Share

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.


AttributesEdit

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 Edit

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 Edit

article {
  display: block;
}

Support Edit

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

Coding rules Edit

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

External LinksEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.