HTML Class - Fall 2002
HTML Text Formatting
HTML defines a lot of elements for formatting output, like bold
or italic text.
How to View HTML Source
Have you ever seen a Web page and wondered "How do they do that?"
To find out, simply click on the VIEW option in your browsers toolbar and
select SOURCE or PAGE SOURCE. This will open a window that shows you the actual
HTML of the page.
Text Formatting Tags
Tag |
Description |
<b> |
Defines bold text |
<big> |
Defines big text |
<em> |
Defines emphasized text |
<i> |
Defines italic text |
<small> |
Defines small text |
<strong> |
Defines strong text |
<sub> |
Defines subscripted text |
<sup> |
Defines superscripted text |
<ins> |
Defines inserted text |
<del> |
Defines deleted text |
"Computer Output" Tags
Tag |
Description |
<code> |
Defines computer code text |
<kbd> |
Defines keyboard text |
<samp> |
Defines sample computer code |
<tt> |
Defines teletype text |
<var> |
Defines a variable |
<pre> |
Defines preformatted text |
Citations, Quotations, and Definition Tags
Tag |
Description |
<abbr> |
Defines an abbreviation |
<acronym> |
Defines an acronym |
<address> |
Defines an address element |
<bdo> |
Defines the text direction |
<blockquote> |
Defines a long quotation |
<q> |
Defines a short quotation |
<cite> |
Defines a citation |
<dfn> |
Defines a definition term |
|