I understand the use of article, section and aside tags on HTML5. In many ways, these tags seem to replace div tag we use on HTML/XHTML. Well, div tag is continued on HTML5 too. Where and when can I use div tag for more semantic markup?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
<div>element has no semantic meaning whatsoever. You can safely use<div>at any point where none of the semantically meaningful elements make sense.A common example is a page layout wrapper
<div id="wrapper">, whose sole purpose is to provide a visual wrapper for you to apply certain styles to.