Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
Difference between section and article in html5
1227 Views
Introduction 
Normally div, section, article are used to contain content of the page.In html5 seperated with some meanings,

<div> element contains content, which does not have any relation and sematics.

<section> element contains content, which have related content.

<article> element contains content, which can give meaning by its own content.
<div> Example
<div>
    <p>statements one</p>
    <p>statements two</p>
</div>
<section> Example
<section>
    <h1>India</h1>
    <p>India is the second largest country in population.</p>
</section>
<article> Example
<article>
    <section>
        <h1>India</h1>
        <p>India is the second largest country in population.</p>
    </section>
    <section>
        <h1>America</h1>
        <p>America is the best country for software professionals.</p>
    </section>
    <section>
        <h1>London</h1>
        <p>London is the capital of Englan.</p>
    </section>
</article>
Next Topics
Next lessons of current book.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details