Summary -

In this topic, we described about the <article> tag along with detailed example.

The <article> element was introduced in HTML 5. Used to specify the standalone content in HTML documents. The <article> tag is used to represent complete, or self-contained, standalone content in HTML document.

The article content should be coded in between the opening and closing tags <article></article>. The <article> tags can be coded inside other <article> tags.

In this above case, the inner <article> represent that are in standard related to the contents of the outer <article>. Examples for the <article> element are Forum post, Blog post, News story and Comment.

Syntax -

<article>….</article>

Example -

<!DOCTYPE html>
<html>
	<head>
		<title> article example</title>
	</head>
	<body>
		<article>
			<h2>article Heading</h2>
			<!-- article content -->
			<p>article Content here</p>
		</article>
	</body>
</html>