Home >> HTML 5 >> article Tag in HTML 5

article Tag in HTML 5

The <article> Tag is HTML element. It is used for independent, self-contained content.
The <article> element used for-
1)-blog entry
2)-forum post
3)-news
4)-comment

Example

<!DOCTYPE html>
<html>
<head>
      <title>Article Tag</title>
</head>
  <body>
    <section>
      <h1>Articles about places</h1>
      <article>
        <h2>Delhi</h2>
        <p>Delhi – Delhi is a capital of India.</p>
      </article>
      <article>
        <h2>Lucknow</h2>
        <p> Lucknow- Lucknow is a capital of Uttar pradesh. </p>
      </article>
    </section>
</body>
</html>

Output

Articles about places
Delhi
Delhi – Delhi is a capital of India.

Lucknow
Lucknow- Lucknow is a capital of Uttar pradesh.

Post Your Comment

Next Questions
aside Tag
audio Tag
b Tag
base Tag
basefont Tag
bdo Tag
bdi Tag
bgsound Tag
big Tag
blockquote Tag
body Tag
br Tag
button Tag
canvas Tag
caption Tag
center Tag
cite Tag
code Tag
col Tag
colgroup Tag
data Tag
datalist Tag
dd Tag
del Tag
details Tag

Copyright ©2022 coderraj.com. All Rights Reserved.