Reference Table of HTML Tags
Last updated April, 1999line break paragraph break rule
Draws a horizontal line across page Headingsexample
h1=largest; h6=smallest Centeringexample example Indented
- example
boldface example example Italic example example bold italic example example larger font example example larger font example example smaller font example example Large letter Example Example subscript H2O H2O superscript cm2 cm2 Symbol font abcde abcde Color text example example
Inline graphics
Display sun.gif Graphic on right Graphic on left Display centered imageGraphic in folder Display image.jpg Graphic as hyperlink
Hyperlinks
Link to page.html in same directory:LINK TEXT Link to page.html stored in subdirectory "directoryname":
LINK TEXT
Link to page.html in higher-level directory:
LINK TEXT
"Absolute" reference to another server (e.g. The White House):
The White House
"Absolute" reference to a specific page on another server:
Tom O'Haver's Home Page
Link to page.html with sun.gif as a graphic hyperlink:
Link to sound file "sound.au" (or movie file "movie.mov"):
LINK TEXT (or "movie.mov")
Imbeded controller for sound files:
"Mailto" link to send email to a specified email address:
Send email to Tom O'Haver
In each of the above, LINK TEXT is the underlined blue text that you click on.
Indented lists
Bulleted list:- first item
- second item
- first item
- second item
Tables
Column heading | Column heading | |
---|---|---|
Row heading | cell contents | cell contents |
Row heading | cell contents | cell contents |
Background and text colors
Replace tag with000000 = black ffffff = white 404040 = dark gray 808080 = medium gray B0B0B0 = light gray ff0000 = red ff8080 = pink 00ff00 = green 80ff80 = pale green 0000ff = blue 8080ff = pale blue ffff00 = yellow ffff80 = pale yellow ff00ff = magenta 00ffff = cyan 800080 = purple 401000 = brown ff7000 = orange