HTML and CSS Reference
In-Depth Information
tabindex="
number
number
"
Specifies the position of the current element in the tabbing order for the current document.
The value must be between 0 and 32,767. It is used for tabbing through the links on a page
(or fields in a form).
title="
text string
text string
"
Provides a title or advisory information about the element.
translate="yes|no"
Not in HTML 4.01
. Indicates whether the element's text content and attribute values
should be translated when the document is localized.
yes
is the default;
no
leaves the ele-
ment content unchanged.
The following attributes are not included in the list of Global Attributes but are permitted in
HTML5 documents:
aria-*="
text string or number
text string or number
"
Not in HTML 4.01
. Allows any of the WAI-ARIA states and properties for improving ac-
cessibility to be applied to an element, for example,
aria-hidden="true"
. The value of
the attribute varies with the property. See
www.w3.org/TR/wai-aria/states_and_properties
for information on supported of states and properties.
data-*="
text string or numerical data
text string or numerical data
"
Not in HTML 4.01
. Enables authors to create custom data-related attributes, for example,
data-length
,
data-duration
,
data-speed
, etc., so that nonvisible data can be embed-
ded and used by a custom application or scripts.
role="
standardized WAI-ARIA role
standardized WAI-ARIA role
"
Not in HTML 4.01
. Assigns one of the standardized WAI-ARIA roles to an element to
make its purpose clearer to users with disabilities. The landmark roles (
application
,
banner
,
complementary
,
contentinfo
,
form
,
main
,
navigation
, and
search
) play
an important role in navigation on assistive devices. See
www.w3.org/TR/wai-aria/
roles#role_definitions
for a complete list of allowable role values.