Appendix B. List of Attributes
Most HTML
tags rely on attributes to modify their behavior and make them more
useful. With so many available tags and attributes, it’s easy
to forget which tag goes with which attributes. For instance, you may
know that you want to set the padding value for a table, but you
can’t remember which tag takes the
cellpadding
attribute (the answer to this one is
<table>
).
The following table provides an alphabetical list of all attributes as listed in the HTML 4.01 specification. The “Related Elements” column provides a list of tags that can use that attribute. The table also lists:
Accepted values for each tag
Whether the attribute is required
A description of the attribute’s use
Whether the attribute has been deprecated (indicated by a D in the “Depr.” column)
Note that some attributes appear more than once in the list. This is due to the fact that they may be used differently or may take different values depending on the tag in which they are used.
Name |
Related elements |
Values |
Depr. |
Comment |
---|---|---|---|---|
|
|
|
Abbreviated name for table cell | |
|
|
|
List of supported character sets | |
|
|
|
List of MIME types for file upload | |
|
|
|
Assigns a shortcut key that brings focus to (activates) the element | |
|
|
|
Location of the CGI form processor on the server |
Get Web Design in a Nutshell, 2nd Edition 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.