tutorialtastic

HTML Quick List

Here's a quick list of the most commonly used valid X/HTML tags, and examples of how to use them. Default browser behaviour may be included in parenthesis.

Text Related

HTML only: <b>text</b> — bold text.
HTML only: <i>text</i> — italic text.
HTML only: <tt>text</tt> — monospaced text.
HTML only: <big>text</big> — makes text one size bigger.
HTML only: <small>text</small> — makes text one size smaller.

<em>text</em> — give emphasis (italic).
<strong>text</strong> — give strong emphasis (bold).
<del>text</del> — 'delete' text without removing it (strikethrough).
<ins>text</ins> — 'insert' text, usually after <del> (underlined).
<sup>text</sup> — superscript; text appears smaller and higher.
<sub>text</sub> — subscript; text appears smaller and lower.

<abbr title="meaning">abbreviation</abbr> — show definition (dotted underline (not IE)).
<acronym title="meaning">acronym</acronym> — show definition (dotted underline).

Images

HTML only: <img src="image.gif"> — show image.
<img src="image.gif" alt="alt text" /> — show image with alternate text.
<img src="image.gif" border="0" alt="alt text" /> — image, alt text, no border.

Tags: ,
Last Updated On: 07th February 06 by Jem
Bookmark At: StumbleUpon, Digg

tutorialtastic — ultimately better than pixelfx
Copyright © Jem Turner 2003-08. (About | Disclaimer | Link In)