A.3. Other Common Attributes
This section lists the other attributes that are supported by most elements.
A.3.1. Core Attributes
Attribute | Description |
---|---|
id | ID value unique to this document |
class | Space-separated list of classes useful for selecting this element for style and other purposes |
style | Local style information |
title | Advisory title, typically rendered by a graphical browser when the pointer is over the element |
A.3.2. Internationalization Attributes
Attribute | Description |
---|---|
lang | Language code for this element's contents |
dir | Direction (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 Name | Color Code |
---|---|
Aliceblue | F0F8FF |
Antiquewhite | FAEBD7 |
Aqua | 00FFFF |
Aquamarine | 7FFFD4 |
Azure | F0FFF |
Beige | F5F5DC |
Bisque | FFE4C4 |
Black | 000000 |
Blanchedalmond | FFEBCD |
Blue | 0000FF |
Blueviolet | 8A2BE2 |
Brown | A52A2A |
Burlywood | DEB887 |
Cadetblue | 5F9EA0 |
Chartreuse | 7FFF00 |
Chocolate | D2691E |
Coral | FF7F50 |
Cornflowerblue | 6495ED |
Cornsilk | FFF8DC |
Crimson | DC143C |
Cyan | 00FFFF |
Darkblue | 00008B |
Darkcyan | 008B8B |
Darkgoldenrod | B8860B |
Darkgray | A9A9A9 |
Darkgreen | 006400 |
Darkkhaki | BDB76B |
Darkmagenta | 8B008B |
Darkolivegreen | 556B2F |
Darkorange | FF8C00 |
Darkorchid | 9932CC |
Darkred | 8B0000 |
Darksalmon | E9967A |
Darkseagreen | 8FBC8F |
Darkslateblue | 483D8B |
Darkslategray | 2F4F4F |
Darkturquoise | 00CED1 |
Darkviolet | 9400D3 |
Deeppink | FF1493 |
Deepskyblue | 00BFFF |
Dimgray | 696969 |
Dodgerblue | 1E90FF |
Firebrick | B22222 |
Floralwhite | FFFAF0 |
Forestgreen | 228B22 |
Fuchsia | FF00FF ... |
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.