Div tag in HTML 5

Posted by Akiii under HTML 5 category on | Points: 40 | Views : 1398
The div tag is the major mechanism in the HTML4 era for creating blocks of content in an HTML document. This Div tag is also made avilable in HTML 5. It can contain anything therefore, we can it as a Generic tag.

HTML Page Using Divs
<div id='header'>Header</div>
<div id='maincontent'>Main Content</div>
<div id='footer'>Footer</div>

The div tag is a nice general purpose tag. But it's hard to tell what section of the document each div tag represents. The tag itself gives no indication of the type of content it is intended to represent. It is also a problem for the search engines google bots to recognize which tag is what inspecting the ids or classes.

Thanks and Regards

Comments or Responses

Login to post response