Internet Explorer HTML Specification Tool Bar

Font Formatting

This following information is described here:




HTML Features that 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




BIG and SMALL

Microsoft® Internet Explorer 3.0 adds two new tags for specifying font size.

Attribute Explanation Example Source
none Makes text one size larger. <BIG>This text is larger</BIG> HTML 3
none Makes text one size smaller. <SMALL>This text is smaller</SMALL> HTML 3




HTML Features that Produce Bold Face Fonts


Microsoft Internet Explorer 3.0 supports two HTML tags that render text as bold face.


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 that Produce Text in a Fixed-Width Font


Microsoft Internet Explorer 3.0 supports nine HTML tags that 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

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

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="sample.url">This is a shortcut to sample.</A></PLAINTEXT> HTML 2


PRE

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

Attribute Explanation Example Source
none Renders text in fixed-width type. <TT>Here's some plain text.</TT> HTML 2

VAR

Attribute Explanation Example Source
none Renders text in a small fixed-width type. <VAR>Here's some plain text.</VAR> HTML 2

XMP

Attribute Explanation Example Source
none Renders text in fixed-width type. <XMP>Here's some plain text.</XMP> HTML 2



HTML Features that Produce Italics


Microsoft Internet Explorer 3.0 supports five HTML tags that 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 that Produce Strikethrough Type


Microsoft Internet Explorer 3.0 supports two HTML tags that 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 that 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 that Sets Apart a Quotation in Text


BLOCKQUOTE

Attribute Explanation Example Source
none Indents both left and right margins. Used to set apart quotations in text. <P>He said,
<BLOCKQUOTE>"Hi there!" </BLOCKQUOTE>
HTML 2


Best Viewed with Internet Explorer

Back to: HTML Specification Home Page

© 1996 Microsoft Corporation