ฉันกำลังพยายามสร้างเลย์เอาต์ใน HTML5 และหลังจากอ่านบทความต่างๆแล้วฉันก็สับสน ฉันกำลังพยายามหาข้อมูลว่าควรใช้อย่างไร
ด้านล่างนี้คือรูปแบบที่ฉันจะกลับไปกลับมา:
1)
<section id="content">
<h1>Heading</h1>
<div id="primary">
Some text goes here...
</div>
</section>
คุณสามารถใช้แท็กส่วนเพื่อทำหน้าที่เหมือนคอนเทนเนอร์ได้หรือไม่
2)
<div id="content">
<h1>Heading</h1>
<section id="primary">
<article>
<h2>Post Title</h2>
<p>Some text goes here...</p>
</article>
</section>
<section id="primary">
<article>
<h2>Post Title</h2>
<p>Some text goes here...</p>
</article>
</section>
</div>
วิธีที่ถูกต้องในการใช้<section>แท็กคืออะไร?
<section> <div>
