HTML tags can have attributes. The special attributes for each tag are listed under the tags in the "HTML 4.0 Reference" page. The attributes listed here are standard attributes valid for all HTML tags (with few exceptions):
Not valid in: base, head, html, meta, param, script, style, title.
| Attributes: | Values: | Description: |
|---|---|---|
| class | class_rule or style_rule | The class of the element. |
| id | id_name | String that identifies the object |
| style | style_definition | An inline style definition |
| title | tooltip_text | Text to display in tool tip |
Not valid in: base, br, frame, frameset, hr, iframe, param, script.
| Attributes: | Values: | Description: |
|---|---|---|
| dir | ltr | rtl | Text direction |
| lang | language_code | Language code |
| Attributes: | Values: | Description: |
|---|---|---|
| accesskey | character | Accessibility character |
| tabindex | number | Position in tabbing order |