Notes to "Introduction to Web Design | Text
1.
<BASEFONT>
W3C
BASEFONT: Deprecated
CSS Example:
<Style type="text/css">
Body{font-family:Arial, Helvetica}
</Style>
2.
<BLINK>
Browser Specific Element
3.
<FONT>
FONT: Deprecated
Deprecated Example:
<FONT SIZE="+2">text</FONT> (size relative to base font)
<FONT SIZE="2">text</FONT> (absolute size)
CSS Example:
P { font-size: 12pt; }
EM { font-size: 150% }
EM { font-size: 1.5em }
BLOCKQUOTE { font-size: larger }
Or, specify colors, and style in CSS
<HEAD>
<STYLE type="text/css">
P.mypar {font-style: italic; color: blue}
</STYLE>
</HEAD>
<P id="mypar"> Your fancy paragraph here
4.
<STRIKE>
W3C
STRIKE and S: Deprecated
Deprecated Example:
<STRIKE>Text with line through it.</STRIKE>
CSS Example:
<HEAD>
<STYLE TYPE="text/css">
#line {text-decoration: line-through;}
</STYLE>
</HEAD>
<BODY>
<P id="line"> text with line through it.
5.
<U>
W3C
U: Deprecated
Deprecated Example:
<U>Underlined text.</U>
CSS Example:
<HEAD>
<STYLE TYPE="text/css">
#uline {text-decoration: underline;}
</STYLE>
</HEAD>
<BODY>
<P id="uline"> Underlined text.
6.
<XMP>
This element is now obsolete.
Return to "Introduction to Web Design | Text Styles"
|