ToC ~ Up ~ Prev ~ Next ~ Index |
Introduction to HTML Last Update: 5 January 1998 |
HTML allows you to specify special character highlighting or emphasis (eg boldface, italics, etc). These elements do NOT cause page breaks, and simply change the rendering of the characters enclosed inside the tags.
HTML allows you to specify these modes in two ways: Logically (by the logical meaning of the special text you wish to mark) and physically (by explicitly specifying the style you want, such as italics, boldfaced, underline, etc.). You are STRONGLY urged to use the logical renderings, as these will be more consistently interpreted from browser to browser.
Note that the logical styles may not be distinct (i.e. different logical styles may be rendered in the same way). Also, some browsers do not support all physical styles. For example, Mosaic does NOT support underlined text -- this is rendered without the underline.
HTML 3 Proposed several new text emphasis elements, such as BIG and SMALL for bigger and smaller text, and SUP and SUB for superscripts and subscripts. These are integrated into HTML 3.2, and are implemented on most newer browsers (Navigator 2.0, Internet Explorer 3.0, etc.) You should be cautious in their user. Examples are given below, which will let you test the abilities of your own browser.
Netscape introduced the special element FONT, which controls the size of the font, on a scale from 1 to 7 (the basefont of the document can be set using the BASEFONT element -- e.g. <BASEFONT SIZE=2>). FONT is discussed in more detail below.
Here are the different logical styles, and examples of the renderings:
<ABBR>
this is an abbrev.</ABBR> is rendered:
this is an abbrev..<CODE>
this is example code </CODE>
is rendered: this is example code
.<EM>
this is example text </EM>
is rendered:
this is example text.<STRONG>
this is example strong text
</STRONG>
is rendered:
this is example strong text.<Q> this is example text </Q>
is rendered:
this is example text.
<SAMP> this is example text </SAMP>
is rendered:
this is example text.<KBD> this is example text </KBD>
is
rendered:
"this is example text.<VAR> this is example text </VAR>
is rendered:
this is example text.<DFN> this is example text
</DFN>
is rendered:
this is example text.<CITE> this is example text
</CITE>
is rendered:
this is example text.These elements physically determine the desired renderings. Please try and use the logical forms, whenever possible.
The physical style elements, and their renderings, are:
<TT> this is example
text </TT>
is rendered:
this is example text.<B> this is example text
</B>
is rendered:
this is example text.<I> this is example text </I>
is rendered:
this is example text.<U> this is example text </U>
is rendered:
this is example text.This element is not widely supported.<BDO DIR="rtl"> this is example text </BDO>
is rendered:
this is example text.This element is not
widely supported.<BLINK> this is example text </BLINK>
is rendered:
.<BIG> this is example text </BIG>
is rendered:
this is example text.<SMALL> this is example
text </SMALL>
is rendered:
this is example text.<S> this is example
text </S>
is rendered:
<MARQUEE> this is example
text </MARQUEE>
is rendered:
.<SUB>sub</SUB>script
is rendered:
subscript.This element is not widely supported.<SUP>sup</SUP>script
is rendered:
supscript. This element is not widely supported.<FONT SIZE="-1">smaller</FONT>
is rendered:
smaller.
Microsoft (3.0) and Netscape (3.0) both allow you to select
font faces. Thus <FONT FACE="arial,helvetica,times"> will select
an arial font (and helvetical should Arial not be available, and
finally Times-Roman should Helvetica not be available). For
example, <FONT FACE="arial,helvetica">this is
arial font </FONT>
is rendered:
this is arial font.
Both browser also support font colors, via the COLOR attribute.
Thus <FONT COLOR="#ff00aa">funny color</font>
is rendered as funny color.
ToC ~ Up ~ Prev ~ Next ~ Index |
Introduction to HTML © 1994-1998 by Ian Graham Last Update: 5 January 1998 |