29/09/2014

HTML The DIV tag

The div tag is not something more than a support for other tags. Here are some of the div attributes:
id
title
style
height
width
The rest of the attributes are not usually used, their job is taken by the CSS. Here is an example of using the <div> tag:
<div id="menu" align="right">
<a href="#">HOME</a> | <a href="#">CONTACT</a> | <a href="#">ABOUT</a>
</div>
<div id="content" align="left" bgcolor="white"< >h5>Title here </h5>
End here will be the content of the paragraph . End here will be
</div>>

Preview

Title here
End here will be the content of the paragraph . End here will be.

The div tag is much easier to use than the table tag, so for that it is recommended to use it as many times as you need.
HTML The div tag easy to modify
One of the reasons for which it is easy usable is introducing new info with ease and we will exemplify this to you. In this example, we have added some new fields to the page exemplified above.
<div id="menu" align="right">
<a href="#">HOME</a> |
<a href="#">CONTACT</a> |
<a href="#">ABOUT</a> |
<a href="#">SITEMAP</a>
</div>
<div id="content" align="left">
<h5>Title here</h5>

End here will be the content of the paragraph. End here will be the content of the paragraph. End here will be the content of the paragraph.
<h5>Second title here </h5>
End here will be the content of the second paragraph. End here will be the content of the second paragraph. End here will be the content of the second paragraph
</div>
Preview
Title here
End here will be the content of the paragraph. End here will be the content of the paragraph. End here will be the content of the paragraph.
Second title here
End here will be the content of the second paragraph. End here will be the content of the second paragraph. End here will be the content of the second paragraph.