Index Next Page     Previous Page    

HTML REFERENCE - Body Works

Controlling your BODY
The BODY makes up the Main area of a HTML page. It includes all of your Text, links, pictures, etc. It is nested within the HTML tag and is a two-sided tag. The Body tag can be coded to set default attributes for the entire page.
These attributes include:

Code as follows:
<BODY>
Text...Tags...
</BODY>


Or for greater customization code:
<BODY BACKGROUND="file.gif" TEXT="#FFFFFF" LINK="red" VLINK="blue">
Text...Tags...
</BODY>


Headings
Headings are used to divide sections of Text. There are six (6) levels of Headings which vary in style, size, emphasis, etc. Heading attributes, (except Alignment) cannot be customized but are controlled by the Browser.
Headings can be any length or many lines of text, although having many lines standing out on a page can be confusing. Keep your Headings simple. The Header tag is two-sided and must have a closing tag. The "Align" attribute within the Header tag can be RIGHT, LEFT or CENTER justification. A blank line is placed above and below a header to separate it from regular text.

Code as follows:
<H1> - or - <H1 ALIGN=Center>
Header/Title
</H1>


Example of Headings 1 - 6:

Heading1 Style

Heading2 Style

Heading3 Style

Heading4 Style

Heading5 Style
Heading6 Style

Creating Paragraphs
The Paragraph element is the most basic Block-level element in HTML. Denoted by the <P> tag, it defines the beginning of a new paragraph. The line break element, denoted by the <BR> tag, specifies that a line break is to be inserted wherever the tag occurs, but BR is technically a Text-level element.
The paragraph tag before your text will insert a blank line to separate the paragraph from other items in your document. It can be used not just to create paragraph breaks, but also to separate images, tables and anywhere else you need line breaks.

Code as follows:
This is just a little paragraph to let you know how this works. <P> Now you can code it yourself.

Example of Paragraph:
This is just a little paragraph to let you know how this works.

Now you can code it yourself.

Horizontal Rules
The Horizontal Rule tag is used to create a horizontal line on your page. Rule lines are used to separate your text, topics, sections and sometimes Rules are used for design. It is a one-sided tag.
You can customize the Horizontal line by changing the SIZE (pixels only), WIDTH (pixel or percentage), NOSHADE or ALIGN attributes within the HR tag.

Code as follows:
<HR>


Or for greater customization code:
<HR SIZE=6 NOSHADE>

<HR SIZE=8 WIDTH=125 ALIGN=CENTER>


Index Next Page     Previous Page     Goto Top of Page
Tynette Lunday
Tlunday2@txu.com
01/23/2002