HTML Tags

HTML5 <article> Tag

The <article> tag represents a self-contained piece of content that could be distributed and reused independently, such as a blog post or news story.


What is the <article> tag?

The <article> element, introduced in HTML5, represents a complete, self-contained composition that is independently distributable or reusable. Examples include a forum post, a magazine or newspaper article, a blog entry, a product card, or a user-submitted comment.

A good test: if the content would still make sense on its own, syndicated via RSS or displayed elsewhere, it is a good candidate for <article>. Articles can be nested, for example a comment inside a blog post.

Complete example

<!DOCTYPE html>
<html lang="en">
  <body>
    <article>
      <h2>How to Ace an Internship Interview</h2>
      <p>Preparation is the key to a confident interview...</p>
      <footer>Posted by the Careers Team</footer>
    </article>
  </body>
</html>
💡

Each <article> should usually have a heading (h1 to h6) to identify it. Use <section> for thematic grouping and <div> for purely stylistic wrapping.

The <article> tag supports only global attributes, renders as a block-level element by default, and is supported in all modern browsers.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships