HTML / XHTML Text Styles

Character formatting for the Web is very similar to formatting the text in any word processing or desktop publishing program. Type an xhtml tag before and after the text. Today designers use CSS font and text properties.
Text FormatHTML TagBrowser Display
Bold <b> </b> This is Bold text
Emphasis <em> </em> This is Emphasis
Italic <i> </i> This is Italicized
Address <address> </address> This is address
Strong <strong> </strong> This is Strong
Cite <cite> </cite> This is a Citation or reference
Code or Pre <code> </code> This is Code
Typewriter <tt> </tt> This is Monotype
Subscript <sub> </sub> This is subscript. H2O
Superscript <sup> </sup> Superscript- 100 0degrees
Strike (deprecated in 4.01) <strike> </strike> This is strikethrough
Big<big> </big>This is Big Text
Small<small> </small>This is Small Text

CSS Division Element <div>   </div>

The division <div> </div> is a container element used to align a block of text or images in the Xhtml document. The div element is used extensibly in style sheets. The old center element and other charter formatting has been replaced by the stylesheet language.
<div align="center"><p>The flowers in the garden...</p> </div>

Web Design with XHTML Part I
Doris Cuffey, Instructor