Font Formatting
The new MARQUEE tag enables you to create a scrolling text marquee. For more information, see
Marquee.
This following information is described here:
HTML Features Which Modify the Font Face, Size and Color
FONT
Attribute |
Explanation |
Example |
Source |
COLOR=#rrggbb or COLOR=color name |
Sets font color. rrggbb is a hexadecimal number denoting a red-green-blue color value (the pound sign is optional). Can also be set to a colorname. See Using Color. |
<FONT COLOR=#ff0000>This text is red.</FONT> or <FONT COLOR=RED>This text is also red.</FONT> |
IExplore |
FACE="name [,name2] [,name3]" |
Sets the font. A list of font names can be specified. If the first font is available on the system, it will be used, otherwise the second will be tried, and so on. If none are available, a default font will be used. |
<FONT FACE="Arial,Lucida Sans,Times Roman"> This text will be in either Arial, Lucida Sans, or Times Roman, depending on which fonts you have installed on your system.</FONT> |
IExplore |
SIZE=n SIZE=+n or -n |
Specifies font size between 1 and 7 (7 is largest). A plus or minus before the number indicates a size relative to the current Basefont setting. (See Basefont.) Note: Relative font sizes are not cumulative. Putting two<FONT SIZE=+1> tags in a row does not result in the font size being increased by 2. See example. |
<BASEFONT SIZE=3> This sets the base font size to 3. <FONT SIZE=+4> Now the font size is 7. <FONT SIZE=-1> Now the font size is 2. <FONT SIZE=+2>Now the font size is 5. <FONT SIZE=1>Now the font size is 1. |
Netscape |
BASEFONT
Sets base font value.
Attribute |
Explanation |
Example |
Source |
SIZE=n (n is between 1 and 7 inclusive; default is 3; 7 is largest) |
Sets the base font size. Throughout the document, relative font size settings -- for example, <FONT SIZE=+3> -- are set according to this. |
<BASEFONT SIZE=3> This sets the base font size to 3. <FONT SIZE=+4> Now the font size is 7. <FONT SIZE=-1> Now the font size is 2. |
Netscape |
HTML Features Which Produce Bold Face Fonts
Internet Explorer 2.0 supports 2 different HTML tags which both render text as bold face fonts.
B
Attribute |
Explanation |
Example |
Source |
none |
Changes text to bold. |
<B>Hi there!</B> |
HTML 2 |
STRONG
Attribute |
Explanation |
Example |
Source |
none |
Changes text to bold. |
<Strong>This text will be bold.</Strong> |
HTML 2 |
HTML Features Which Produce Text in a Fixed-Width Font
Internet Explorer 2.0 supports 9 different HTML tags which render text in various formats of a fixed-width font.
CODE
Specifies a code sample.
Attribute |
Explanation |
Example |
Source |
none |
Renders text in a small font. (If no FONT FACE is specified, the font used is fixed-width.) |
<CODE>Here is some text in a small fixed-width font.</CODE> |
HTML 2 |
KBD
Renders text in fixed-width and boldface type.
Attribute |
Explanation |
Example |
Source |
none |
Renders text in fixed-width and boldface type. |
<KBD>this is text that the user is supposed to type.</KBD> |
HTML 2 |
LISTING
Renders text in fixed-width type.
Attribute |
Explanation |
Example |
Source |
none |
Renders text in fixed-width type. |
<LISTING>Here's some plain text.</LISTING> |
HTML 2 |
PLAINTEXT
Renders text in fixed-width type without processing tags.
Attribute |
Explanation |
Example |
Source |
none |
Renders text in fixed-width type. Also turns off HTML parsing until the browser encounters the </PLAINTEXT> tag. |
<PLAINTEXT> Here's a sample of HTML: <A HREF="[unarchived-link]" is a shortcut to sample.</A></PLAINTEXT> |
HTML 2 |
PRE
Renders text in fixed-width type.
Attribute |
Explanation |
Example |
Source |
none |
Renders text in fixed-width type. |
<PRE>Here's some plain text.</PRE> |
HTML 2 |
SAMP
Specifies a code sample.
Attribute |
Explanation |
Example |
Source |
none |
Renders text in a small font. (If no FONT FACE is specified, the font used is fixed-width.) |
<SAMP>Here is some text in a small fixed-width font.</SAMP> |
HTML 2 |
TT
Renders text in fixed-width type.
Attribute |
Explanation |
Example |
Source |
none |
Renders text in fixed-width type. |
<TT>Here's some plain text.</TT> |
HTML 2 |
VAR
Renders text as a small fixed-width font.
Attribute |
Explanation |
Example |
Source |
none |
Renders text in a small fixed-width type. |
<VAR>Here's some plain text.</VAR> |
HTML 2 |
XMP
Renders text in fixed-width type.
Attribute |
Explanation |
Example |
Source |
none |
Renders text in fixed-width type. |
<XMP>Here's some plain text.</XMP> |
HTML 2 |
HTML Features Which Produce Italics
Internet Explorer 2.0 supports 5 different HTML tags which all render text as italics.
I
Attribute |
Explanation |
Example |
Source |
none |
Renders text in italics. |
<I>This text will be in italics.</I> |
HTML 2 |
ADDRESS
Attribute |
Explanation |
Example |
Source |
none |
Renders text in italics. |
<ADDRESS>This text will be in italics.</ADDRESS> |
HTML 2 |
CITE
Attribute |
Explanation |
Example |
Source |
none |
Renders text in italics. |
<CITE>This text will be in italics.</CITE> |
HTML 2 |
DFN
Attribute |
Explanation |
Example |
Source |
none |
Renders text in italics. |
<DFN>This text will be in italics.</DFN> |
HTML 2 |
EM
Attribute |
Explanation |
Example |
Source |
none |
Renders text in italics. |
<EM>This text will be in italics.</EM> |
HTML 2 |
HTML Features Which Produce Strikethrough Type
Internet Explorer 2.0 supports 2 different HTML tags which both render text in strikethrough type.
S
Attribute |
Explanation |
Example |
Source |
none |
Renders text in strikethrough type. |
<S>This text has a line through it.</S> |
HTML 2 |
STRIKE
Attribute |
Explanation |
Example |
Source |
none |
Renders text in strikethrough type. |
<Strike>This text has a line through it.</Strike> |
HTML 2 |
HTML Feature Which Produces Underline Type
U
Attribute |
Explanation |
Example |
Source |
none |
Renders text underlined. |
<U>This text has a line under it.</U> |
HTML 2 |
HTML Feature Which Sets Apart a Quotation in Text
BLOCKQUOTE
Sets apart a quotation in text.