Language References
Represents a self-contained unit of information. | HTML 5 |
HTML Syntax
<article
class = classname
id = value
style = css properties
title = text
event = script
>
The ARTICLE element represents a section of content that forms an independent part of a document, a self-contained unit of information that may be linked to or included in some other content body.
<article
>...</article
> tags may be nested, meaning there can be child ARTICLE elements of a parent ARTICLE element.
The <article
> element has no attribute of its own, but supports global attributes common to all HTML elements.
NOTE: Both start and end tags are required.
The following example shows how the <article
> element may be used.
Sample Code
<article>
<h2>What you should know</h2>
<article>
<h3>HTML</h3>
<p>HTML is the standard language for Web pages. It comprises a family of markup languages
used for displaying information viewable in a web browser. </p>
</article>
<article>
<h3>CSS</h3>
<p>Cascading Style Sheets (CSS) is a style sheet language used for specifying
the presentation and styling of a document written in a markup language such as HTML or XML. </p>
</article>
<article>
<h3>Javascript</h3>
<p>JavaScript is a lightweight client-side programming language used to customize
the behavior of web pages. </p>
</article>
</article>
which would render on a Web page as follows:
What you should know
HTML
HTML is the standard language for Web pages. It comprises a family of markup languages used for displaying information viewable in a web browser.
CSS
Cascading Style Sheets (CSS) is a style sheet language used for specifying the presentation and styling of a document written in a markup language such as HTML or XML.
Javascript
JavaScript is a lightweight client-side programming language used to customize the behavior of web pages.
ASIDE FOOTER HEADER SECTION