Text Formatting Elements


Text characteristics such as the size, weight, and style can be modified by using these elements, but the HTML 4.01 specification encourages you to use style sheets instead.

<b>...</b>

Usage

Bold text.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Empty

No.


<basefont>

Usage

Sets the base font size.

Start/End Tag

Required/IllegalSee note for XHTML 1.0 requirements.

Deprecated

size="..."The font size (1 tHRough 7 or relative; that is, +3).

 

color="..."The font color.

 

face="..."The font type.

Empty

Yes.

Notes

Deprecated in favor of style sheets. In XHTML 1.0, this tag should take the XML form of _<basefont /> to ensure compatibility with older browsers.


<big>...</big>

Usage

Large text.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Empty

No.


<font>...</font>

Usage

Changes the font face, size, and color.

Start/End Tag

Required/Required.

Deprecated

size="..."The font size (1 through 7 or relative; that is, +3).

 

color="..."The font color.

 

face="..."The font type.

Empty

No.

Notes

Deprecated in favor of style sheets.


<i>...</i>

Usage

Italicizes text.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Empty

No.


<s>...</s>

Usage

Strikethrough text.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Empty

No.

Notes

Deprecated in favor of style sheets.


<small>...</small>

Usage

Small text.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Empty

No.


<strike>...</strike>

Usage

Strikethrough text.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Empty

No.

Notes

Deprecated in favor of style sheets.


<tt>...</tt>

Usage

Teletype (or monospaced) text.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Empty

No.


<u>...</u>

Usage

Underlines text.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

Empty

No.

Notes

Deprecated in favor of style sheets.





Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day (5th Edition)
ISBN: 0672328860
EAN: 2147483647
Year: 2007
Pages: 305

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net