The attributes listed below are standard, and can be used in nearly all HTML/XHTML tags.
Core Attributes
Valid in all elements, except: <base>, <head>, <html>, <meta>, <param>, <script>, <style>, and <title>.
| Attribute | Description |
|---|---|
| class | Specifies one or more classnames for an element (refers to a class in a style sheet) |
| id | Specifies a unique id for an element |
| style | Specifies an inline CSS style for an element |
| title | Specifies extra information about an element |
Language Attributes
Valid in all elements, except: <base>, <br>, <frame>, <frameset>, <hr>, <iframe>, <param>, and <script>.
| Attribute | Description |
|---|---|
| dir | Specifies the text direction for the content in an element |
| lang | Specifies the language of the element's content |
| xml:lang | Specifies the language of the element's content (for XHTML documents) |
Keyboard Attributes
| Attribute | Description |
|---|---|
| accesskey | Specifies a shortcut key to activate/focus an element |
| tabindex | Specifies the tabbing order of an element |
No comments:
Post a Comment