This
and That HTML Page Three
by mm and Tik Tok
On to the <div> </div> tags. Division tags are used mainly in conjuction with Style Sheets, but you can use them on just ordinary html pages as well.
I want to make the next area of my page centered. I want everything centered, so I'll use the division tag.
Cute huh?
Each and everything I do, from line breaks to paragraphs
to images to tables, all will be centered and I don't have to put the <center></center> tags in over and over.
We can look at the code here:
<div align=center>
(Opens the division tag, align everything in the center of the page)
<P>
(Opens a new paragraph. Since we're using divison tags we don't have to add
anything else)
Cute huh? (My
text)
<br> (I wanted a line break instead of
a new paragraph)
Each and everything I do, from line breaks to paragraphs (My
text)
<br>
(I wanted a line break instead of a new paragraph)
<P>
(Opens a new paragraph)
to images to tables, all will be centered and I don't have to put the <center></center>
tags in over and over. (My text)
</div> (Closes the division tag)
Sort of hard to read in the middle of the page, let's use the division tag to left justify it:
<div align=center>
(Opens the division tag, align everything in the center of the page)
<P>
(Opens a new paragraph. Since we're using divison tags we don't have to add
anything else)
Cute huh? (My
text)
<br> (I wanted a line break instead of
a new paragraph)
Each and everything I do, from line breaks to paragraphs (My
text)
<P>
(Opens a new paragraph)
to images to tables, all will be centered and I don't have to put the <center></center>
tags in over and over. (My text)
</div> (Closes the division tag)
Now we can use the
right align tag:
<div align=right>
Instead of doing the code separate<br>
I'm just gonna type it here.<br>
By now I know you understand.
I could just go on and on and on but it's pretty apparent that I want<br>
to right justifiy everything in this paragraph.
</div>
To put it simply, division tags replace <center> tags, and alignment attributes in <P> tags.
End of Page Three....click here for Page Four
Back to Site Help
This helpful information compiled by Tik Tok and mm