+ 2
When should I use <div> and when <section> ?
1 Antwort
+ 16
D.K. John it's very simple.
Section is a new HTML5 SEMANTIC element. Use it to divide your content into meaningful parts if you really want to :) You can have a page containing a news article and a comment SECTION. However you can also divide articles into SECTIONS for your own reasons.
Good old DIV tags can be used instead of new block level tags to support old browsers. They are also good for all non specific purposes.