Index | Back | Next
This page produced by James Kirk
Assignment 1, page 1

Body tag - see page 29

The body tag can have attributes to set the background color and text color. See page 29



Heading tags - see page 61

Headings are block-level elements that are organized into levels h1 through h6. <h1> is the largest size and <h6> is the smallest.

Heading Level 1

Heading Level 2

Heading Level 3

Heading Level 4

Heading Level 5
Heading Level 6

Text formatting - see page 46

The <font> tag is deprecated. A deprecated tag is supported in the current version of the language but will not be supported in future versions. The W3C recommends using Cascading Style Sheets to format text instead of using the <font> tag. However, the <font> is still widely used on the Web, so you need to become familiar with it.

The size attribute of the <font> tag ranges from 1, the smallest, to 7, the largest.

Size 1: This is a font size using the deprecated html font size tag.

Size 2: This is a font size using the deprecated html font size tag.

Size 3: This is a font size using the deprecated html font size tag

Size 4: This is a font size using the deprecated html font size tag.

Size 5: This is a font size using the deprecated html font size tag.

Size 6: This is a font size using the deprecated html font size tag.

Size 7: This is a font size using the deprecated html font size tag.


The following text is styled using inline css. The font size is controlled using exact units of measurements such as px for pixels, pt for points, em for ems, etc. The following is an example of an inline css to control font size:

<font style="font-size: 12pt;">This is 12 point text which has been sized using Inline CSS.</font>
This is 9 point text which has been sized using Inline CSS.
This is 10 point text which has been sized using Inline CSS.
This is 12 point text which has been sized using Inline CSS.

This is 18 point text which has been sized using Inline CSS.


Font faces, color, size - see page 46-51

You can place multiple attributes within a single <font> tag like

<font color="ff0000" size="4" face="Arial"> This text is styled using the deprecated <font>tag</font>

The following are some examples of using font attributes in the deprecated <font> tag:

This font is #009966, size 5, Verdana, Helvetica, or sans-serif, default size and color.

This font is #0033CC, size 3, Times Roman.

This font has multiple sizes, colors, and styles.


Index | Back | Next