Using div tag we can control a particular area or a block of code and text within it. Here is a simple structure of div tag.
My text here
You can see we have defined the are within the div tag with id=my_area , this is useful for us to further manage the area using DHTML. We will learn them in our next tutorial. Now we will learn different attributes with examples.
AttributesAlign: Values : left, right, center, justify
We can set the align attribute to different values and manage the text within the div tag area.