Article Tag in HTML
The article defines an independent, self-contained content. It’s like writing some independent information (article) about something, which may be a blog post, an article from some newspaper or a magazine, a forum post, a user comment, or some piece of independent content.
Here is the example implementation for the same –
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Some heading…</title>
</head>
<body>
<article>
<h2>Lorem ipsum dolor sit.</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Exercitationem non sequi cupiditate vitae voluptatum adipisci, rem molestias laudantium laboriosam quia autem. Nulla blanditiis quia quasi. Animi explicabo odit nesciunt omnis.
Fugiat nisi sed maiores nulla adipisci in quae provident quod praesentium est corporis magnam ipsum vel tempora reprehenderit, voluptatibus consectetur dicta quaerat, suscipit temporibus a! Quidem mollitia eos ratione assumenda.
Saepe, cupiditate nostrum. Consectetur facere maiores molestiae, non harum sequi laboriosam tenetur? Ratione totam reiciendis quam? Dolorem molestiae deleniti magnam explicabo quidem reiciendis, recusandae, voluptatibus magni non iure, beatae debitis.</p>
</article>
<article>
<h2>Lorem, ipsum dolor.</h2>
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Doloribus nemo repellat, voluptate a, nisi dignissimos molestias accusantium iure sunt architecto voluptatum! Quisquam reprehenderit ducimus asperiores illum dolor consequatur similique perspiciatis.
Magni natus ratione in distinctio eligendi adipisci eveniet, praesentium, quod similique soluta ullam ut quas dolore reprehenderit excepturi et, reiciendis modi molestiae maiores dolores sequi laborum numquam quaerat quae? Sapiente.</p>
</article>
</body>
</html>
As you can see, here, we have some independent texts(though it is a dummy text, just let’s consider that it is some independent text). The output comes out to be something like this –
The article is supposed to make some sense, and the content should be independently distributable.