Div tag in HTML 5

Akiii
Posted by Akiii under HTML 5 category on | Points: 40 | Views : 1420
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>
<head>
<title>
HTML Page Using Divs
</title>
</head>
<body>
<div id='header'>Header</div>
<div id='maincontent'>Main Content</div>
<div id='footer'>Footer</div>
</body>
</html>




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
Akiii

Comments or Responses

Login to post response