HTML Tutorial 7
Prepared by: Anthony Larrain
The Font Tag
- The
<font>
tag allows you to change the color, size and face of the text. - Use the attributes color, size and face to change the appearance of the text.
Example 1
Comic font
This is a font size of 4
Browser Display
This text is green
Comic font
This a a font size of 4
Comic font
This a a font size of 4
- A tag can contain more than one attribute.
- Attributes must be separated by at least one space.
Example 2
Browser Display
This text is green and comic
- The font tag is deprecated
- Here is a list of deprecated tags
Design tip
- Use CSS to style the text
- Avoid using special fonts. Stick with popular fonts.