Home :: Learning HTML :: Block Level :: Divisions
You may have noticed that between sections of some Web pages, there are lines. These
lines are called Horizontal Rules, and serve as logical "change of topic" markers.
They are marked by using the HR element. HR is an empty
element, like BR, so there is no ending tag, i.e. </HR>.
The element HR can take four attributes:
Examples:
<HR> <HR WIDTH="50%" NOSHADE SIZE="10" ALIGN="LEFT">
Each is rendered as:
Divisions can be used to apply certain layout properties to blocks of text.
The DIV element can take the attribute ALIGN, with the values of LEFT,
CENTER or RIGHT. Here's an example:
<DIV ALIGN="CENTER"> <P>This is some text in a paragraph.</P> <H3>Chihuahuas</H3> </DIV>
This is rendered as:
This is some text in a paragraph.
Using this element, you can align many elements at the same time, instead of typing in ALIGN="LEFT|CENTER|RIGHT" for each one separately.
Previous: Lists
Next: Blockquotes
Home:: Learning HTML :: Block Level :: Divisions
Home |
Policies |
HTML |
FAQ
Publishing |
Booklet |
Tools |
Links