[ToC] [Up] [Back] [Next] ... [Book Plug] |
The Information Commons .................... Introduction to HTML |
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.
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.
<EM>
this is example text </EM>
is rendered:<STRONG>
this is example strong text
</STRONG>
is rendered:<CODE>
this is example code </CODE>
is rendered:this is example code
.
<SAMP> this is example text </SAMP>
is rendered:<KBD> this is example text </KBD>
is
rendered:<VAR> this is example text </VAR>
is rendered:<DFN> this is example text
</DFN>
is rendered:<CITE> this is example text
</CITE>
is rendered:The physical style elements, and their renderings, are:
<TT> this is example
text </TT>
is rendered:<B> this is example text
</B>
is rendered:<I> this is example text </I>
is rendered:<U> this is example text </U>
is rendered:<BIG> this is example text </BIG>
is rendered:<SMALL> this is example
text </SMALL>
is rendered:<SUB>sub</SUB>script
is rendered:<SUP>sup</SUP>script
is rendered:<FONT SIZE="-1">smaller</FONT>
is rendered: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 helvetica 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 or Helvetica.
Both browser also support font colors, via the COLOR attribute.
Thus <FONT COLOR="#ff00aa">funny color</font>
is rendered as funny color.
[ToC] [Up] [Back] [Next] ... [Book Plug] | .................... Introduction to HTML |
© Ian Graham 1994-1996 | Page Last Updated: 25 November 1996 |