This list is contributed by, and the latest version of this document is available at http://werbach.com/barebones/, where you will also find the text version, translations, and background materials.
The Bare Bones Guide to HTML lists all the tags that current browsers are likely to recognize. I have included all the elements in the official HTML 4.0 recommendation with common attributes, as well as Netscape and Microsoft extensions. This document is a quick reference, not a complete specification; for official information about HTML and its development, see the World Wide Web Consortium site at http://www.w3.org/MarkUp/.
Table of Contents
- HTML TAGS
BASIC ELEMENTS
|
| |
Document Type |
<HTML></HTML> |
(beginning and end of file) |
| |
Title |
<TITLE></TITLE> |
(must be in header) |
| |
Header |
<HEAD></HEAD> |
(descriptive info, such as title) |
| |
Body |
<BODY></BODY> |
(bulk of the page) |
STRUCTURAL DEFINITION
|
| |
Heading |
<H?></H?> |
(the spec. defines 6 levels) |
| |
Align Heading |
<H? ALIGN=LEFT|CENTER|RIGHT></H?> |
|
| |
Division |
<DIV></DIV> |
|
| |
Align Division |
<DIV ALIGN=LEFT|RIGHT|CENTER|JUSTIFY></DIV> |
| 4.0 |
Defined Content |
<SPAN></SPAN> |
|
| |
Block Quote |
<BLOCKQUOTE></BLOCKQUOTE> |
(usually indented) |
| 4.0 |
Quote |
<Q></Q> |
(for short quotations) |
| 4.0 |
Citation |
<Q CITE="URL"></Q> |
|
| |
Emphasis |
<EM></EM> |
(usually displayed as italic) |
| |
Strong Emphasis |
<STRONG></STRONG> |
(usually displayed as bold) |
| |
Citation |
<CITE></CITE> |
(usually italics) |
| |
Code |
<CODE></CODE> |
(for source code listings) |
| |
Sample Output |
<SAMP></SAMP> |
|
| |
Keyboard Input |
<KBD></KBD> |
|
| |
Variable |
<VAR></VAR> |
|
| |
Definition |
<DFN></DFN> |
(not widely implemented) |
| |
Author's Address |
<ADDRESS></ADDRESS> |
|
| |
Large Font Size |
<BIG></BIG> |
|
| |
Small Font Size |
<SMALL></SMALL> |
|
| 4.0 |
Insert |
<INS></INS> |
(marks additions in a new version) |
| 4.0 |
Time of Change |
<INS DATETIME=":::"></INS> |
|
| 4.0 |
Comments |
<INS CITE="URL"></INS> |
|
| 4.0 |
Delete |
<DEL></DEL> |
(marks deletions in a new version) |
| 4.0 |
Time of Change |
<DEL DATETIME=":::"></DEL> |
|
| 4.0 |
Comments |
<DEL CITE="URL"></DEL> |
|
| 4.0 |
Acronym |
<ACRONYM></ACRONYM> |
|
| 4.0 |
Abbreviation |
<ABBR></ABBR> |
|
PRESENTATION FORMATTING
|
| |
Bold |
<B></B> |
|
| |
Italic |
<I></I> |
|
| 4.0* |
Underline |
<U></U> |
(not widely implemented) |
| |
Strikeout |
<STRIKE></STRIKE> |
(not widely implemented) |
| 4.0* |
Strikeout |
<S></S> |
(not widely implemented) |
| |
Subscript |
<SUB></SUB> |
|
| |
Superscript |
<SUP></SUP> |
|
| |
Typewriter |
<TT></TT> |
(displays in a monospaced font) |
| |
Preformatted |
<PRE></PRE> |
(display text spacing as-is) |
| |
Width |
<PRE WIDTH=?></PRE> |
(in characters) |
| |
Center |
<CENTER></CENTER> |
(for both text and images) |
| N1 |
Blinking |
<BLINK></BLINK> |
(the most derided tag ever) |
| |
Font Size |
<FONT SIZE=?></FONT> |
(ranges from 1-7) |
| |
Change Font Size |
<FONT SIZE="+|-?"></FONT> |
|
| |
Font Color |
<FONT COLOR="#$$$$$$"></FONT> |
|
| 4.0* |
Select Font |
<FONT FACE="***"></FONT> |
|
| N4 |
Point size |
<FONT POINT-SIZE=?></FONT> |
|
| N4 |
Weight |
<FONT WEIGHT=?></FONT> |
|
| 4.0* |
Base Font Size |
<BASEFONT SIZE=?> |
(from 1-7; default is 3) |
| MS |
Marquee |
<MARQUEE></MARQUEE> |
|