|
Tag |
Description |
NN |
IE |
|
Defines a comment |
3.0 |
3.0 |
|
|
Defines the document type |
|
|
|
|
Defines an anchor |
3.0 |
3.0 |
|
|
Defines an abbreviation |
6.2 |
|
|
|
Defines an acronym |
6.2 |
4.0 |
|
|
Defines an address element |
4.0 |
4.0 |
|
|
Deprecated. Defines an applet |
3.0 |
3.0 |
|
|
Defines an area inside an image map |
3.0 |
3.0 |
|
|
Defines bold text |
3.0 |
3.0 |
|
|
Defines a base URL for all the links in a page |
3.0 |
3.0 |
|
|
Deprecated. Defines a base font |
3.0 |
3.0 |
|
|
Defines the direction of text display |
6.2 |
5.0 |
|
|
Defines big text |
3.0 |
3.0 |
|
|
Defines a long quotation |
3.0 |
3.0 |
|
|
Defines the body element |
3.0 |
3.0 |
|
|
Inserts a single line break |
3.0 |
3.0 |
|
|
Defines a push button |
6.2 |
4.0 |
|
|
Defines a table caption |
3.0 |
3.0 |
|
|
Deprecated. Defines centered text |
3.0 |
3.0 |
|
|
Defines a citation |
3.0 |
3.0 |
|
|
Defines computer code text |
3.0 |
3.0 |
|
|
Defines attributes for table columns |
|
3.0 |
|
|
Defines groups of table columns |
|
3.0 |
|
|
Defines a definition description |
3.0 |
3.0 |
|
|
Defines deleted text |
6.2 |
4.0 |
|
|
Deprecated. Defines a directory list |
3.0 |
3.0 |
|
|
Defines a definition term |
|
3.0 |
|
|
Defines a section in a document |
3.0 |
3.0 |
|
|
Defines a definition list |
3.0 |
3.0 |
|
|
Defines a definition term |
3.0 |
3.0 |
|
|
Defines emphasized text |
3.0 |
3.0 |
|
|
Defines a fieldset |
6.2 |
4.0 |
|
|
Deprecated. Defines the font face, size, and color of text |
3.0 |
3.0 |
|
|
Defines a form |
3.0 |
3.0 |
|
|
Defines a sub window (a frame) |
3.0 |
3.0 |
|
|
Defines a set of frames |
3.0 |
3.0 |
|
|
Defines header 1 to header 6 |
3.0 |
3.0 |
|
|
Defines information about the document |
3.0 |
3.0 |
|
|
Defines a horizontal rule |
3.0 |
3.0 |
|
|
Defines an html document |
3.0 |
3.0 |
|
|
Defines italic text |
3.0 |
3.0 |
|
|
Defines an inline sub window (frame) |
6.0 |
4.0 |
|
|
Defines an image |
3.0 |
3.0 |
|
|
Defines an input field |
3.0 |
3.0 |
|
|
Defines inserted text |
6.2 |
4.0 |
|
|
<isindex> |
|
3.0 |
3.0 |
|
Defines keyboard text |
3.0 |
3.0 |
|
|
Defines a label for a form control |
6.2 |
4.0 |
|
|
Defines a title in a fieldset |
6.2 |
4.0 |
|
|
Defines a list item |
3.0 |
3.0 |
|
|
Defines a resource reference |
4.0 |
3.0 |
|
|
Defines an image map |
3.0 |
3.0 |
|
|
Deprecated. Defines a menu list |
3.0 |
3.0 |
|
|
Defines meta information |
3.0 |
3.0 |
|
|
Defines a noframe section |
3.0 |
3.0 |
|
|
Defines a noscript section |
3.0 |
3.0 |
|
|
Defines an embedded object |
|
3.0 |
|
|
Defines an ordered list |
3.0 |
3.0 |
|
|
Defines an option group |
6.0 |
|
|
|
Defines an option in a drop-down list |
3.0 |
3.0 |
|
|
Defines a paragraph |
3.0 |
3.0 |
|
|
Defines a parameter for an object |
3.0 |
3.0 |
|
|
Defines preformatted text |
3.0 |
3.0 |
|
|
Defines a short quotation |
6.2 |
|
|
|
Deprecated. Defines strikethrough text |
3.0 |
3.0 |
|
|
Defines sample computer code |
3.0 |
3.0 |
|
|
Defines a script |
3.0 |
3.0 |
|
|
Defines a selectable list |
3.0 |
3.0 |
|
|
Defines small text |
3.0 |
3.0 |
|
|
Defines a section in a document |
4.0 |
3.0 |
|
|
Deprecated. Defines strikethrough text |
3.0 |
3.0 |
|
|
Defines strong text |
3.0 |
3.0 |
|
|
Defines a style definition |
4.0 |
3.0 |
|
|
Defines subscripted text |
3.0 |
3.0 |
|
|
Defines superscripted text |
3.0 |
3.0 |
|
|
Defines a table |
3.0 |
3.0 |
|
|
Defines a table body |
|
4.0 |
|
|
Defines a table cell |
3.0 |
3.0 |
|
|
Defines a text area |
3.0 |
3.0 |
|
|
Defines a table footer |
|
4.0 |
|
|
Defines a table header |
3.0 |
3.0 |
|
|
Defines a table header |
|
4.0 |
|
|
Defines the document title |
3.0 |
3.0 |
|
|
Defines a table row |
3.0 |
3.0 |
|
|
Defines teletype text |
3.0 |
3.0 |
|
|
Deprecated. Defines underlined text |
3.0 |
3.0 |
|
|
Defines an unordered list |
3.0 |
3.0 |
|
|
Defines a variable |
3.0 |
3.0 |
|
|
<xmp> |
Deprecated. Defines preformatted text. Use <pre> instead |
3.0 |
3.0 |
HTML tags can have attributes. The special attributes for each tag are listed under each tag description. The attributes listed here are the core and language attributes that are standard for all tags (with a few exceptions):
Not valid in base, head, html, meta, param, script, style, and
title elements.
|
Attribute |
Value |
Description |
|
class |
class_rule or style_rule |
The class of the element |
|
id |
id_name |
A unique id for the element |
|
style |
style_definition |
An inline style definition |
|
title |
tooltip_text |
A text to display in a tool tip |
Not valid in base, br, frame, frameset, hr, iframe, param, and
script elements.
|
Attribute |
Value |
Description |
|
dir |
ltr | rtl |
Sets the text direction |
|
lang |
language_code |
Sets the language code |
|
Attribute |
Value |
Description |
|
accesskey |
character |
Sets a keyboard shortcut to access an element |
|
tabindex |
number |
Sets the tab order of an element |
New to HTML 4.0 is the ability to
let HTML events trigger actions in the browser, like starting a JavaScript when
a user clicks on an HTML element. Below is a list of attributes that can be
inserted into HTML tags to define event actions.
Only valid in body and frameset elements.
|
Attribute |
Value |
Description |
|
onload |
script |
Script to be run when a document loads |
|
onunload |
script |
Script to be run when a document unloads |
Only valid in form elements.
|
Attribute |
Value |
Description |
|
onchange |
script |
Script to be run when the element changes |
|
onsubmit |
script |
Script to be run when the form is submitted |
|
onreset |
script |
Script to be run when the form is reset |
|
onselect |
script |
Script to be run when the element is selected |
|
onblur |
script |
Script to be run when the element loses focus |
|
onfocus |
script |
Script to be run when the element gets focus |
Not valid in base, bdo, br, frame, frameset, head, html, iframe,
meta, param, script, style, and title elements.
|
Attribute |
Value |
Description |
|
onkeydown |
script |
What to do when key is pressed |
|
onkeypress |
script |
What to do when key is pressed and released |
|
onkeyup |
script |
What to do when key is released |
Not valid in base, bdo, br, frame, frameset, head, html, iframe,
meta, param, script, style, title elements.
|
Attribute |
Value |
Description |
|
onclick |
script |
What to do on a mouse click |
|
ondblclick |
script |
What to do on a mouse double-click |
|
onmousedown |
script |
What to do when mouse button is pressed |
|
onmousemove |
script |
What to do when mouse pointer moves |
|
onmouseout |
script |
What to do when mouse pointer moves out of an element |
|
onmouseover |
script |
What to do when mouse pointer moves over an element |
|
onmouseup |
script |
What to do when mouse button is released |
HTML uses standard 7-BIT ASCII
when transmitting data over the Web.
7-BIT ASCII represents 128
different character values (0-127).
|
Result |
Description |
Entity Number |
|
|
space |
  |
|
! |
exclamation mark |
! |
|
" |
quotation mark |
" |
|
# |
number sign |
# |
|
$ |
dollar sign |
$ |
|
% |
percent sign |
% |
|
& |
ampersand |
& |
|
' |
apostrophe |
' |
|
( |
left parenthesis |
( |
|
) |
right parenthesis |
) |
|
* |
asterisk |
* |
|
+ |
plus sign |
+ |
|
, |
comma |
, |
|
- |
hyphen |
- |
|
. |
period |
. |
|
/ |
slash |
/ |
|
0 |
digit 0 |
0 |
|
1 |
digit 1 |
1 |
|
2 |
digit 2 |
2 |
|
3 |
digit 3 |
3 |
|
4 |
digit 4 |
4 |
|
5 |
digit 5 |
5 |
|
6 |
digit 6 |
6 |
|
7 |
digit 7 |
7 |
|
8 |
digit 8 |
8 |
|
9 |
digit 9 |
9 |
|
: |
colon |
: |
|
; |
semicolon |
; |
|
< |
less-than |
< |
|
= |
equals-to |
= |
|
> |
greater-than |
> |
|
? |
question mark |
? |
|
@ |
at sign |
@ |
|
A |
uppercase A |
A |
|
B |
uppercase B |
B |
|
C |
uppercase C |
C |
|
D |
uppercase D |
D |
|
E |
uppercase E |
E |
|
F |
uppercase F |
F |
|
G |
uppercase G |
G |
|
H |
uppercase H |
H |
|
I |
uppercase I |
I |
|
J |
uppercase J |
J |
|
K |
uppercase K |
K |
|
L |
uppercase L |
L |
|
M |
uppercase M |
M |
|
N |
uppercase N |
N |
|
O |
uppercase O |
O |
|
P |
uppercase P |
P |
|
Q |
uppercase Q |
Q |
|
R |
uppercase R |
R |
|
S |
uppercase S |
S |
|
T |
uppercase T |
T |
|
U |
uppercase U |
U |
|
V |
uppercase V |
V |
|
W |
uppercase W |
W |
|
X |
uppercase X |
X |
|
Y |
uppercase Y |
Y |
|
Z |
uppercase Z |
Z |
|
[ |
left square bracket |
[ |
|
\ |
backslash |
\ |
|
] |
right square bracket |
] |
|
^ |
caret |
^ |
|
_ |
underscore |
_ |
|
` |
grave accent |
` |
|
a |
lowercase a |
a |
|
b |
lowercase b |
b |
|
c |
lowercase c |
c |
|
d |
lowercase d |
d |
|
e |
lowercase e |
e |
|
f |
lowercase f |
f |
|
g |
lowercase g |
g |
|
h |
lowercase h |
h |
|
i |
lowercase i |
i |
|
j |
lowercase j |
j |
|
k |
lowercase k |
k |
|
l |
lowercase l |
l |
|
m |
lowercase m |
m |
|
n |
lowercase n |
n |
|
o |
lowercase o |
o |
|
p |
lowercase p |
p |
|
q |
lowercase q |
q |
|
r |
lowercase r |
r |
|
s |
lowercase s |
s |
|
t |
lowercase t |
t |
|
u |
lowercase u |
u |
|
v |
lowercase v |
v |
|
w |
lowercase w |
w |
|
x |
lowercase x |
x |
|
y |
lowercase y |
y |
|
z |
lowercase z |
z |
|
{ |
left curly brace |
{ |
|
| |
vertical bar |
| |
|
} |
right curly brace |
} |
|
~ |
tilde |
~ |
ASCII device control characters were originally designed to
control hardware devices like printers and tape drives. These characters have
nothing to do inside any HTML document.
|
Result |
Description |
Entity Number |
|
NUL |
null character |
� |
|
SOH |
start of header |
 |
|
STX |
start of text |
 |
|
ETX |
end of text |
 |
|
EOT |
end of transmission |
 |
|
ENQ |
enquiry |
 |
|
ACK |
acknowledge |
 |
|
BEL |
bell (ring) |
 |
|
BS |
backspace |
 |
|
HT |
horizontal tab |
	 |
|
LF |
line feed |
|
|
VT |
vertical tab |
 |
|
FF |
form feed |
 |
|
CR |
carriage return |
|
|
SO |
shift out |
 |
|
SI |
shift in |
 |
|
DLE |
data link escape |
 |
|
DC1 |
device control 1 |
 |
|
DC2 |
device control 2 |
 |
|
DC3 |
device control 3 |
 |
|
DC4 |
device control 4 |
 |
|
NAK |
negative acknowledge |
 |
|
SYN |
synchronize |
 |
|
ETB |
end transmission block |
 |
|
CAN |
cancel |
 |
|
EM |
end of medium |
 |
|
SUB |
substitute |
 |
|
ESC |
escape |
 |
|
FS |
file separator |
 |
|
GS |
group separator |
 |
|
RS |
record separator |
 |
|
US |
unit separator |
 |
|
DEL |
delete (rubout) |
 |
|
Result |
Description |
Entity Name |
Entity Number |
|
" |
quotation mark |
" |
" |
|
& |
ampersand |
& |
& |
|
< |
less-than |
< |
< |
|
> |
greater-than |
> |
> |
|
Result |
Description |
Entity Name |
Entity Number |
|
|
non-breaking space |
|
  |
|
¡ |
inverted exclamation mark |
¡ |
¡ |
|
¤ |
currency |
¤ |
¤ |
|
¢ |
cent |
¢ |
¢ |
|
£ |
pound |
£ |
£ |
|
¥ |
yen |
¥ |
¥ |
|
¦ |
broken vertical bar |
¦ |
¦ |
|
§ |
section |
§ |
§ |
|
¨ |
spacing diaeresis |
¨ |
¨ |
|
© |
copyright |
© |
© |
|
ª |
feminine ordinal indicator |
ª |
ª |
|
« |
angle quotation mark (left) |
« |
« |
|
¬ |
negation |
¬ |
¬ |
|
|
soft hyphen |
­ |
­ |
|
® |
registered trademark |
® |
® |
|
™ |
trademark |
™ |
|
|
¯ |
spacing macron |
¯ |
¯ |
|
° |
degree |
° |
° |
|
± |
plus-or-minus |
± |
± |
|
² |
superscript 2 |
² |
² |
|
³ |
superscript 3 |
³ |
³ |
|
´ |
spacing acute |
´ |
´ |
|
µ |
micro |
µ |
µ |
|
¶ |
paragraph |
¶ |
¶ |
|
· |
middle dot |
· |
· |
|
¸ |
spacing cedilla |
¸ |
¸ |
|
¹ |
superscript 1 |
¹ |
¹ |
|
º |
masculine ordinal indicator |
º |
º |
|
» |
angle quotation mark (right) |
» |
» |
|
¼ |
fraction 1/4 |
¼ |
¼ |
|
½ |
fraction 1/2 |
½ |
½ |
|
¾ |
fraction 3/4 |
¾ |
¾ |
|
¿ |
inverted question mark |
¿ |
¿ |
|
× |
multiplication |
× |
× |
|
÷ |
division |
÷ |
÷ |
Colors are displayed
combining RED, GREEN, and BLUE light sources.
Colors are defined using a hexadecimal notation for the
combination of Red, Green, and Blue color values (RGB). The lowest value that
can be given to one light source is 0 (hex #00). The highest value is 255 (hex
#FF).
This table shows the result of combining Red, Green, and Blue
light sources:.
|
Color |
Color HEX |
Color RGB |
|
|
#000000 |
rgb(0,0,0) |
|
|
#FF0000 |
rgb(255,0,0) |
|
|
#00FF00 |
rgb(0,255,0) |
|
|
#0000FF |
rgb(0,0,255) |
|
|
#FFFF00 |
rgb(255,255,0) |
|
|
#00FFFF |
rgb(0,255,255) |
|
|
#FF00FF |
rgb(255,0,255) |
|
|
#C0C0C0 |
rgb(192,192,192) |
|
|
#FFFFFF |
rgb(255,255,255) |
A collection of color names are supported by newer versions of
both Netscape and Internet Explorer.
Note: Only 16
color names are supported by the W3C HTML 4.0 standard (aqua, black,
blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver,
teal, white, and yellow). For all other colors you should use the Color HEX
value.
|
Color |
Color HEX |
Color Name |
|
|
#F0F8FF |
AliceBlue |
|
|
#FAEBD7 |
AntiqueWhite |
|
|
#7FFFD4 |
Aquamarine |
|
|
#000000 |
Black |
|
|
#0000FF |
Blue |
|
|
#8A2BE2 |
BlueViolet |
|
|
#A52A2A |
Brown |
A few years ago, when most computers supported only 256 different
colors, a list of 216 Web Safe Colors was suggested as a Web standard. The
reason for this was that Microsoft and Mac operating system used 40 different
"reserved" fixed system colors (about 20 each).
We are not sure how important this is now, since more and more
computers are equipped with the ability to display millions of different
colors, but the choice is left to you.
This 216 cross platform web safe color palette was originally
created to ensure that all computers would display all colors correctly when
running a 256 color palette.
|
000000 |
000033 |
000066 |
000099 |
0000CC |
0000FF |
|
003300 |
003333 |
003366 |
003399 |
0033CC |
0033FF |
|
006600 |
006633 |
006666 |
006699 |
0066CC |
0066FF |
|
009900 |
009933 |
009966 |
009999 |
0099CC |
0099FF |
|
00CC00 |
00CC33 |
00CC66 |
00CC99 |
00CCCC |
00CCFF |
|
00FF00 |
00FF33 |
00FF66 |
00FF99 |
00FFCC |
00FFFF |
|
330000 |
330033 |
330066 |
330099 |
3300CC |
3300FF |
|
333300 |
333333 |
333366 |
333399 |
3333CC |
3333FF |
|
336600 |
336633 |
336666 |
336699 |
3366CC |
3366FF |
|
339900 |
339933 |
339966 |
339999 |
3399CC |
3399FF |
|
33CC00 |
33CC33 |
33CC66 |
33CC99 |
33CCCC |
33CCFF |
|
33FF00 |
33FF33 |
33FF66 |
33FF99 |
33FFCC |
33FFFF |
|
660000 |
660033 |
660066 |
660099 |
6600CC |
6600FF |
|
663300 |
663333 |
663366 |
663399 |
6633CC |
6633FF |
|
666600 |
666633 |
666666 |
666699 |
6666CC |
6666FF |
|
669900 |
669933 |
669966 |
669999 |
6699CC |
6699FF |
|
66CC00 |
66CC33 |
66CC66 |
66CC99 |
66CCCC |
66CCFF |
|
66FF00 |
66FF33 |
66FF66 |
66FF99 |
66FFCC |
66FFFF |
|
990000 |
990033 |
990066 |
990099 |
9900CC |
9900FF |
|
993300 |
993333 |
993366 |
993399 |
9933CC |
9933FF |
|
996600 |
996633 |
996666 |
996699 |
9966CC |
9966FF |
|
999900 |
999933 |
999966 |
999999 |
9999CC |
9999FF |
|
99CC00 |
99CC33 |
99CC66 |
99CC99 |
99CCCC |
99CCFF |
|
99FF00 |
99FF33 |
99FF66 |
99FF99 |
99FFCC |
99FFFF |
|
CC0000 |
CC0033 |
CC0066 |
CC0099 |
CC00CC |
CC00FF |
|
CC3300 |
CC3333 |
CC3366 |
CC3399 |
CC33CC |
CC33FF |
|
CC6600 |
CC6633 |
CC6666 |
CC6699 |
CC66CC |
CC66FF |
|
CC9900 |
CC9933 |
CC9966 |
CC9999 |
CC99CC |
CC99FF |
|
CCCC00 |
CCCC33 |
CCCC66 |
CCCC99 |
CCCCCC |
CCCCFF |
|
CCFF00 |
CCFF33 |
CCFF66 |
CCFF99 |
CCFFCC |
CCFFFF |
|
FF0000 |
FF0033 |
FF0066 |
FF0099 |
FF00CC |
FF00FF |
|
FF3300 |
FF3333 |
FF3366 |
FF3399 |
FF33CC |
FF33FF |
|
FF6600 |
FF6633 |
FF6666 |
FF6699 |
FF66CC |
FF66FF |
|
FF9900 |
FF9933 |
FF9966 |
FF9999 |
FF99CC |
FF99FF |
|
FFCC00 |
FFCC33 |
FFCC66 |
FFCC99 |
FFCCCC |
FFCCFF |
|
FFFF00 |
FFFF33 |
FFFF66 |
FFFF99 |
FFFFCC |
FFFFFF |
HTML colors are defined using a
hexadecimal notation for the combination of Red, Green, and Blue color values
(RGB). The lowest value that can be given to one of the light sources is 0 (hex
#00). The highest value is 255 (hex #FF).
If you turn off the Red light completely,
there are 65536 different combination of Green and Blue (256 x 256) to
experiment with.
By setting the Red parameter to its
maximum value, there are still 65536 different combination of Green and Blue
(256 x 256) to experiment with.
The combination of Red, Green and Blue
values from 0 to 255 gives a total of more than 16 million different colors to
play with (256 x 256 x 256).
Most modern monitors are capable of
displaying at least 16384 different colors.
If you look at the color table below, you
will see the result of varying the red light from 0 to 255, while keeping the
green and blue light at zero.
To see a full list of 16384 different
colors based on red light varying from 0 to 255, click on one of the
hexadecimal or rgb values below.
|
Red Light |
HEX |
RGB |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|