A.3. Other Common Attributes

This section lists the other attributes that are supported by most elements.

A.3.1. Core Attributes

AttributeDescription
idID value unique to this document
classSpace-separated list of classes useful for selecting this element for style and other purposes
styleLocal style information
titleAdvisory title, typically rendered by a graphical browser when the pointer is over the element

A.3.2. Internationalization Attributes

AttributeDescription
langLanguage code for this element's contents
dirDirection (ltr or rtl) for the text

A.3.3. Common Color Codes

This table lists the available color codes in both text and their name format.

NOTE

The palette and color depth used on the user agent's platform may affect how colors are rendered on individual platforms.

Color NameColor Code
AliceblueF0F8FF
AntiquewhiteFAEBD7
Aqua00FFFF
Aquamarine7FFFD4
AzureF0FFF
BeigeF5F5DC
BisqueFFE4C4
Black000000
BlanchedalmondFFEBCD
Blue0000FF
Blueviolet8A2BE2
BrownA52A2A
BurlywoodDEB887
Cadetblue5F9EA0
Chartreuse7FFF00
ChocolateD2691E
CoralFF7F50
Cornflowerblue6495ED
CornsilkFFF8DC
CrimsonDC143C
Cyan00FFFF
Darkblue00008B
Darkcyan008B8B
DarkgoldenrodB8860B
DarkgrayA9A9A9
Darkgreen006400
DarkkhakiBDB76B
Darkmagenta8B008B
Darkolivegreen556B2F
DarkorangeFF8C00
Darkorchid9932CC
Darkred8B0000
DarksalmonE9967A
Darkseagreen8FBC8F
Darkslateblue483D8B
Darkslategray2F4F4F
Darkturquoise00CED1
Darkviolet9400D3
DeeppinkFF1493
Deepskyblue00BFFF
Dimgray696969
Dodgerblue1E90FF
FirebrickB22222
FloralwhiteFFFAF0
Forestgreen228B22
FuchsiaFF00FF ...

Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.