Reference Table of HTML Tags

Reference Table of HTML Tags

Last updated April, 1999
line break       

paragraph break
rule

Draws a horizontal line across page
Headings


example


h1=largest; h6=smallest
Centering

example

example
Indented
    example

example
Preformatted
     
boldface example exampleItalic example examplebold italic example
examplelarger font example example larger font example example smaller font example example Large letter Example Example subscript H2O H2O superscript cm2 cm2Symbol font abcde abcdeColor text example example

Inline graphics

   Display sun.gif                        
Graphic on right
Graphic on left
Display centered image


Graphic 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


Ordered (auto-numbered) list:

  1. first item

  2. second item


Tables












Column heading Column heading
Row heading cell contents cell contents
Row heading cell contents cell contents

Simply Copy and Paste this template, adding rows and columns as needed, and replacing "Column heading", "Row heading", and "cell contents" with your own contents.

Background and text colors

Replace tag with
000000 = 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

Background patterns

To use xxxx.gif as background pattern, replace tag with:

0 komentar