Web Page CentralPoliciesHTMLFAQPublishingBookletToolsLinks

Home :: Learning HTML :: Block Level :: Divisions

Search

[Help]
Match:

[Off Site Link]=Off Site Link[Help]

[Direct Link to File]=Link to File[Help]

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

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.

Chihuahuas

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

Last Update: 2000-04-19
This Page's Address: http://www.madison.k12.wi.us/webpub/basics25.htm
District Home Page: http://www.madison.k12.wi.us
HTML Editor & Publisher: Chris Burch, cburch@madison.k12.wi.us
webmaster@madison.k12.wi.us