HTML TUTORIALS - HTML Attributes Ref
HTML Attributes Ref
ADVERTISEMENTS
Core Attributes
Attribute | Value | Description |
---|---|---|
class | class_rule or style_rule | The class of the element |
id | id_name | A unique id for the element |
style | style_definition | An inline style definition |
title | tooltip_text | A text to display in a tool tip |
ADVERTISEMENTS
Language Attributes
Attribute | Value | Description |
---|---|---|
dir | ltr | rtl | Sets the text direction |
lang | language_code | Sets the language code |
ADVERTISEMENTS
Microsoft Proprietary Attributes
Attribute | Value | Description |
---|---|---|
accesskey | character | Sets a keyboard shortcut to access an element |
language | string | This attribute specifies the scripting language to be used with an associated script bound to the element, typically through an event handler attribute. Possible values might include javascript, jscript, vbs, and vbscript. |
tabindex | number | Sets the tab order of an element |
contenteditable | boolean | Allows users to edit content rendered in Internet Explorer 5.5 or greater. Possible values are true or false. |
disabled | boolean | Elements with the disabled attribute set may appear faded and will not respond to user input. Possible values are true or false. |
hidefocus | This proprietary attribute, introduced with Internet Explorer 5.5, hides focus on an element's content. Focus must be applied to the element using the tabindex attribute. | |
unselectable | on or off | Used to prevent content displayed in Internet Explorer 5.5 from being selected. |