HTML and CSS Reference
In-Depth Information
C
APPENDIX
HTML Elements
and Attributes
This appendix provides descriptions of the major elements and attri-
butes of HTML. The elements and attributes represent the specifi ca-
tions of the W3C; therefore, they might not all be supported by the
major browsers. Also, in some cases, an element or attribute is not
part of the W3C specifi cations, but instead is an extension offered
by a particular browser. Where this is the case, the element or attri-
bute is listed with the supporting browser indicated in parentheses.
Many elements and attributes have been deprecated by the W3C.
Deprecated elements and attributes are supported by most brows-
ers, but their use is discouraged. In addition, some elements and
attributes have been marked as
obsolete
. The use of both deprecated
and obsolete items is not recommended. However, while deprecated
items are in danger of no longer being supported by the browser
market, obsolete items will probably still be supported by the browser
market for the foreseeable future.
Finally, elements and attributes that are new with HTML5 are indi-
cated in the text. Note that some of these elements and attributes are
not supported by all browsers and browser versions.
The following data types are used throughout this appendix:
•
char
A single text character
•
char code
A character encoding
•
color
An HTML color name or hexadecimal
color value
•
date
A date and time in the format:
yyyy-mm-dd
T
hh: mm:ssTIMEZONE
•
id
An id value
•
lang
A language type
•
media
A media type equal to all, aural, braille,
handheld, print, projection, screen, tty, or tv
•
integer
An integer value
•
mime-type
A MIME data type, such as “text/css”
•
mime-type list
A comma-separated list of mime-types
•
option1
|
option2
| …
The value is limited to the specifi ed list of
options
, with the default in
bold
•
script
A script or a reference to a script
•
styles
A list of style declarations
•
text
A text string
•
text list
A comma-separated list of text strings
•
url
The URL for a Web page or fi le
•
value
A numeric value
•
value list
A comma-separated list of numeric values
STARTING DATA FILES
There are no starting Data Files needed for this appendix.
HTML C1