The first method of creating styles is to place the information into each tag. This is done using the style attribute.

The style attribute can be used in a wide variety of tags, such as <a>, <p>, <td> and even <body>.

The syntax for style is different than for regular tags. The way to write them is as follows:

item:value;

First you put the item you are setting, followed by a colon then the value you are setting. If you are including more than one item in the style, they must be separated by a semi-colon.

For example, if you needed to create a style which is bold, and in a large font, you could use the syntax:

<p style="font-weight:bold; font-size:24pt">Hi There</p>

Because the <p> tag is being used, the style is applied to the entire paragraph, and would create the following:

Hi There

Go To Page 3

[HTML Basics] | [Introduction To Tags] | [Tables] | [Frames] | [Cascading Style Sheets] | [Test] | [Creating Your First Web Site]