
As soon as you defined the minimum html document tags you will need to add some content to your website. In order to do so you will need to learn some basic tags to control text alignment, spaces, to displays images and do many other useful things.
The following table reviews the features of the 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. |
| <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. |
Here is the example of basic text formatting using HTML tags
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
</HEAD>
<BODY>
This is a very simple web page. Notice that
the browser does not pay attention too 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
<P>
<HR ALIGN = "CENTER" SIZE = "10" WIDTH = "50%" COLOR = "AA0000" NOSHADE>
</BODY>
</HTML>
That's how this code will be displayed in Netscape Navigator.