Code has been added to clipboard!

<article>

HTML article Tag: Main Tips

  • An article should be self-contained and understandable with or without a context.
  • The <article> tag could potentially hold a blog post, news story, comment or a forum post.
  • The <article> tag is new in HTML5.
  • All global and event attributes are supported by the <article> tag.

article

Defines independent content. This element should make sense on its own without any context.

Example
<article>
  <h1>Fun Fact</h1>
  <p>Fun fact: most of the fun facts on the Internet are not actually fun.</p>
</article>

Try it Live Find Coding Exercises

Mostly Used Tags with article Tag

address

To provide information about the author of the article, use <address> tag.

Example
<article>
  <address>
    Written by Someone.<br> 
    Visit me at: <br>
    https://www.bitdegree.org/ <br>
  </address>
</article>

Try it Live Find Coding Exercises

You can use <footer> tag to provide extra information at the bottom of the <article> element.

Example

<article class="blog_post">
  <p> Another blog post. </p>
  <footer>
    <p&gt
      Extra information is always good.
    </p>
  </footer>
</article>

Try it Live Find Coding Exercises

time

Use <time> tag to describe the date and time of the publication of the <article> element.

Example

<article class="blog_post">
  <p>My first blog post, I am a real blogger now.</p>
  <footer>
    <p>
      Posted on <time datetime="2017-07-24 16:00">May 31</time> by Lisa.
    </p>
  </footer>
</article>

Try it Live Find Coding Exercises