HTML Lessons - Colors
Return to HTML Lessons


You can use regular color names like black, blue, brown, cyan, green, red, or white.

The syntax is <font color="red"> or
<table bgcolor="blue">

Or if you have a textbook with hexidecimal "font" codes, you can use those too. (000000 is black)

The syntax is <font color="black"> or
<table bgcolor="black">

(For all hexidecimal color codes, see Paint Shop Pro.)



Color Text Examples




XXXXXXXXXX black = 000000

XXXXXXXXXX dark gray = 404040




XXXXXXXXXX blue = 0000ff

XXXXXXXXXX cyan = 00ffff

XXXXXXXXXX gray = 808080

XXXXXXXXXX green = 00ff00

XXXXXXXXXX light gray = c0c0c0

XXXXXXXXXX magenta = ff00ff

XXXXXXXXXX orange = ffc800

XXXXXXXXXX pink = ffafaf

XXXXXXXXXX red = ff0000

XXXXXXXXXX white = ffffff

XXXXXXXXXX yellow = ffff00



Color Background Examples


black............
dark gray............
blue............
cyan............
gray............
green............
light gray............
magenta............
orange............
pink............
red............
white............
yellow............


Top of Page