Does HTML5 Replace Divs?

Phreaddee

Super Moderator
Staff member
divs are very much a part of the html5 specification.
although some may be replaced by more semantic named elements, you will still need to use them...
 

Absolution

New Member
I think I just discovered where divs do remain! Background on that.

http://html5doctor.com/the-section-element/
http://www.impressivewebs.com/html5-section/

When coding in HTML 5, I would naturally think that the <section> tag would be used to section off parts of the page, like the main area. However it seems section elements should not be used without a header following it. This would make it more useful for chapters on a page, not really to section of main page content. So I guess I will use the <div> tag to divide the main body content from the header and footer.
 
Last edited:
Top