Home > DeveloperSection > Beginner > Article element in HTML5

Article element in HTML5


HTML5 HTML5 
Ratings:
0 Comment(s)
 13448  View(s)
Rate this:

Article element in HTML5

In HTML5 <article> tag is used to show content, content can be blog, forum, newspaper etc. Article tag represents an independent section of page. The article tag specifies independent, self contained content.  This is a new tag in html5. In this example I will show you that how we can use <article> tag in html page.

Code:

<head>

    <title>HTML5 Article Tag Demonstration.</title>

</head>

<body>

    <h1>

        This is a demo of Article tag in html5

    </h1>

    <article> <!--here using article tag to-->

    <section>

         <h2>Article Tag Example Link 1</h2>

         Click to

        <a href="http://www.mindstick.com/DevelopersSection.aspx">       MindStick

        </a>

       get more details

     <p>In HTML5 <article> tag is use for to show external page content, content can be blog,<br />

     form, newspaper etc.Article tag represent an independent section of page.    <br />

     In this exampleI will show how we can use <article> tag in html page.</p>

   </section>

 

</article>

<article>

    <section>

    <h2>Article Tag Example Link 2</h2>

       Click to<a href="http://www.google.co.in/"> Google </a>get details

       <p>Article tag is use for to show external page content,page can be    forum,newspaper etc.

      </p>

    </section>

</article>

</body>

Screenshot

Article element in HTML5

 

 


Don't want to miss updates? Please click the below button!

Follow MindStick