HTML Quick Reference
{- BACK -}
| HTML Structure |
| TAG |
DESCRIPTION |
COMMENTS |
| <HTML> </HTML> |
Document type |
Surrounds entire document |
| <TITLE> </TITLE> |
Document title |
Placed within the <HEAD> </HEAD> |
| <HEAD> </HEAD> |
Document Header |
Used when page is searchable of has relationships |
| <BODY> </BODY> |
Body of HTML document |
What is seen by browsers |
| <!-- text --> |
Comments |
...are not displayed by the browser |
| HTML Formatting: Blocks and Separators |
| TAG |
DESCRIPTION |
COMMENTS |
| <H#> </H#> |
Headings |
H1..H6 may be used |
| <H# ALIGN=LEFT|CENTER|RIGHT> </H#> |
Align Heading |
Valid in HTML 3 only |
| <P> </P> |
Paragragh |
Typically gives a double line break |
| <P ALIGN=LEFT|CENTER|RIGHT> </P> |
Align text |
Valid in HTML 3 only |
| <ADDRESS> </ADDRESS> |
Address (E-Mail) |
Usually in Italics |
| <BLOCKQUOTE> </BLOCKQUOTE> |
Quotation |
Usually indented |
| <PRE> </PRE> |
Preformatted Text |
Display 'as-is' |
| <PRE WIDTH=n> </PRE> |
Width |
n is the number of characters |
| <CENTER> </CENTER> |
Center |
Netscape Extension |
| <BR> |
Break Line (Carriage Return) |
A single carriage return with a line feed |
| <HR> |
Horizontal Rule |
Draws a line across the screen |
| HTML Formatting: Physical Characteristics |
| TAG |
DESCRIPTION |
COMMENTS |
| <B> </B> |
Bold |
BOLD |
| <I> </I> |
Italics |
Italics |
| <S> </S> |
Strikeout |
Not used much |
| <U> </U> |
Underline |
Not used much |
| <TT> </TT> |
Typewriter |
Monospaced font |
| <BLINK> </BLINK> |
Blink |
Netscape Extension |
| <FONT SIZE=n> </FONT> |
Font size |
Netscape Extension, n=1-7 |
| <BASEFONT SIZE=n> |
Base font size |
Netscape Extension, default is 3 |
| HTML Formatting: Logical Characteristics |
| TAG |
DESCRIPTION |
COMMENTS |
| <STRONG> </STRONG> |
Strong Emphasis |
Usually BOLD |
| <EM> </EM> |
Emphasis |
Usually Italics |
| <CITE> </CITE> |
Citation |
Usually Italics |
| <KBD> </KBD> |
Keyboard Input |
Fix font |
| <CODE> </CODE> |
Code |
Monospaced font |
| <SAMP> </SAMP> |
Sample Output |
Not used much |
| <VAR> </VAR> |
Variable |
Usually Italics |
| HTML Lists |
| TAG |
DESCRIPTION |
COMMENTS |
| <LI> </LI> |
List |
Used in <DIR>, <MENU>, <OL>,
and <UL> |
| <UL> </UL> |
Unordered List |
<LI> must be used before each item |
| <OL> </OL> |
Ordered List |
<LI> must be used before each item |
| <MENU> </MENU> |
Menu List |
<LI> must be used before each item |
| <DIR> </DIR> |
Directory List |
<LI> must be used before each item |
| <DT> </DT> |
Term |
Used with <DL> |
| <DD> </DD> |
Definition |
Used with <DL> |
| <DL> </DL> |
Definition List |
Used with <DT> and <DD> |
| <LI TYPE=DISC|CIRCLE|SQUARE> |
Bullet type |
Valid for current and following list items, Netscape extension |
| <UL TYPE=DISC|CIRCLE|SQUARE> |
Bullet type |
Valid for entire list, Netscape extension |
| <OL TYPE=A|a|I|i|1> |
Number type |
Valid for entire list, Netscape extension |
| <LI TYPE=A|a|I|i|1> |
Number type |
Valid for current and following list items, Netscape extension |
| <LI VALUE=n> |
Beginning number |
Valid for current and following list items, Netscape extension |
| <OL VALUE=n> |
Beginning number |
Valid for entire list, Netscape extension |
| HTML Links |
| TAG |
DESCRIPTION |
COMMENTS |
| <A HREF="URL"></A> |
Link |
A few Valid links: http, ftp, gopher, telnet,file
... |
| <A HREF="URL#labal"></A> |
Defines a link location |
Within another document |
| <A HREF="#labal"></A> |
Defines a link location |
Within the current document |
| <A HREF="labal"></A> |
Defines a link location |
|
| |
|
|
| HTML Images |
| TAG |
DESCRIPTION |
COMMENTS |
| <IMG SRC="URL" attributes>
</A> |
Display Image |
Image can be stored anyplace which is accessible |
| ALIGN=TOP|BOTTOM|MIDDLE |
Alignment |
Within another document |
| ALT="text" |
Alternate text |
Displayed if image can not be displayed |
| ISMAP |
Imagemap |
Mapfile required |
{- BACK -}
Last modified: July 01,
2001
Comments: rickshelp@telus.net
Copyright © 1997-98 Rick's Web Page Help!
|