Basic HTML Body Tags
| Opening Tag/Closing Tag |
Description |
| <P>...</P> |
Indicates a new paragraph and instructs the browser to add a blank
line. Takes optional alignment parameters of LEFT, RIGHT or CENTER to
align the paragraph.[1] |
| <BR> None |
Forces a line break in the text. This tag takes an optional
parameter to specify how text should wrap around images however we
will discuss this on Day Two. |
| <HR> None |
This tag creates a horizontal line across the screen. By default
the line will span the entire width of the document according to the
specifications of BLOCKQUOTE and LIST tags. However, you can modify
the look of the line by using any of the following attributes. ALIGN
may equal LEFT, RIGHT, or CENTER. SIZE may equal some pixel value.
WIDTH may equal some pixel value or some percentage of the document
width. NOSHADE will turn off the beveling look. COLOR may equal some
color hexvalue.[2] |
Basic HTML Body Tags by Example
- The following HTML code shows the basic HTML body tags in action.
<HTML>
<HEAD>
<TITLE>Body Tag Example</TITLE>
</HEAD>
<BODY>
This is a very simple web page. Notice that
the browser does not pay attention to spaces
that we
add to our document unless you specify what type
of spacing you want
<P>
Like when you use a paragraph tag or a <BR>
break line tag
<P>
And here is a hard rule
<HR ALIGN = "CENTER"
SIZE = "10"
WIDTH = "50%"
COLOR = "AA0000" NOSHADE>
</BODY>
</HTML>
- When read by a web browser, the previous HTML code would look
like the following:
HTML Resources:
Basic HTML Tags
Introduction to Web Design | Table of Contents
Coding Style
|