Html.Attributes.Aria
Html attributes for the WAI (Web Accessibility Initiative) ARIA (Accessible Rich Internet Applications) suite of web standards.
Aria Role
A WAI-ARIA role is set on an element using a role attribute, similar to the role attribute defined in Role Attribute [ROLE-ATTRIBUTE]. See the official specs.
div [ role "button" ] [ text "Hello aria!" ]
Aria Property Attributes
Identifies the currently active element when DOM focus is on a composite widget, combobox, textbox, group, or application. See the official specs.
div [ ariaActiveDescendant "id" ] [ text "Hello aria!" ]
Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. See the official specs.
div [ ariaAtomic True ] [ text "Hello aria!" ]
Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made. See the official specs.
div [ ariaAutoComplete AriaAutoCompleteInline ] [ text "Hello aria!" ]
Defines the total number of columns in a table, grid, or treegrid. See related aria-colindex. See the official specs.
div [ ariaColCount 2 ] [ text "Hello aria!" ]
Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. See related aria-colcount and aria-colspan. See the official specs.
div [ ariaColIndex 2 ] [ text "Hello aria!" ]
Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. See related aria-colindex and aria-rowspan. See the official specs.
div [ ariaColSpan 2 ] [ text "Hello aria!" ]
Identifies the element (or elements) whose contents or presence are controlled by the current element. See related aria-owns. See the official specs.
div [ ariaControls ["id1", "id2"] ] [ text "Hello aria!" ]
Identifies the element (or elements) that describes the object. See related aria-labelledby. See the official specs.
div [ ariaDescribedBy ["id1", "id2"] ] [ text "Hello aria!" ]
Identifies the element that provides a detailed, extended description for the object. See related aria-describedby. See the official specs.
div [ ariaDetails "id" ] [ text "Hello aria!" ]
[Deprecated in ARIA 1.1] Indicates what functions can be performed when a dragged object is released on the drop target. See the official specs.
div [ ariaDropEffect [ AriaDropEffectCopy, AriaDropEffectExecute ] ] [ text "Hello aria!" ]
Identifies the element that provides an error message for an object. See related aria-invalid and aria-describedby. See the official specs.
div [ ariaErrorMessage "id" ] [ text "Hello aria!" ]
Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. See the official specs.
div [ ariaFlowTo ["id1", "id2"] ] [ text "Hello aria!" ]
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. See the official specs.
div [ ariaHasPopup AriaHasPopupFalse ] [ text "Hello aria!" ]
Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. See the official specs.
div [ ariaKeyShortcuts "value" ] [ text "Hello aria!" ]
Defines a string value that labels the current element. See related aria-labelledby. See the official specs.
div [ ariaLabel "value" ] [ text "Hello aria!" ]
Identifies the element (or elements) that labels the current element. See related aria-describedby. See the official specs.
div [ ariaLabelledBy ["id1", "id2"] ] [ text "Hello aria!" ]
Defines the hierarchical level of an element within a structure. See the official specs.
div [ ariaLevel 2 ] [ text "Hello aria!" ]
Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. See the official specs.
div [ ariaLive AriaLiveAssertive ] [ text "Hello aria!" ]
Indicates whether an element is modal when displayed. See the official specs.
div [ ariaModal True ] [ text "Hello aria!" ]
Indicates whether a text box accepts multiple lines of input or only a single line. See the official specs.
div [ ariaMultiLine True ] [ text "Hello aria!" ]
Indicates that the user may select more than one item from the current selectable descendants. See the official specs.
div [ ariaMultiSelectable True ] [ text "Hello aria!" ]
Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. See the official specs.
div [ ariaOrientation AriaOrientationHorizontal ] [ text "Hello aria!" ]
Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related aria-controls. See the official specs.
div [ ariaOwns ["id1", "id2"] ] [ text "Hello aria!" ]
Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. See the official specs.
div [ ariaPlaceholder "value" ] [ text "Hello aria!" ]
Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related aria-setsize. See the official specs.
div [ ariaPosInSet 2 ] [ text "Hello aria!" ]
Indicates that the element is not editable, but is otherwise operable. See related aria-disabled. See the official specs.
div [ ariaReadOnly True ] [ text "Hello aria!" ]
Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related aria- atomic. See the official specs.
div [ ariaRelevant [ AriaRelevantAdditions, AriaRelevantAdditionsText ] ] [ text "Hello aria!" ]
Indicates that user input is required on the element before a form may be submitted. See the official specs.
div [ ariaRequired True ] [ text "Hello aria!" ]
Defines a human-readable, author-localized description for the role of an element. See the official specs.
div [ ariaRoleDescription "value" ] [ text "Hello aria!" ]
Defines the total number of rows in a table, grid, or treegrid. See related aria-rowindex. See the official specs.
div [ ariaRowCount 2 ] [ text "Hello aria!" ]
Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. See related aria- rowcount and aria-rowspan. See the official specs.
div [ ariaRowIndex 2 ] [ text "Hello aria!" ]
Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. See related aria-rowindex and aria-colspan. See the official specs.
div [ ariaRowSpan 2 ] [ text "Hello aria!" ]
Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related aria-posinset. See the official specs.
div [ ariaSetSize 2 ] [ text "Hello aria!" ]
Indicates if items in a table or grid are sorted in ascending or descending order. See the official specs.
div [ ariaSort AriaSortAscending ] [ text "Hello aria!" ]
Defines the maximum allowed value for a range widget. See the official specs.
div [ ariaValueMax 1.5 ] [ text "Hello aria!" ]
Defines the minimum allowed value for a range widget. See the official specs.
div [ ariaValueMin 1.5 ] [ text "Hello aria!" ]
Defines the current value for a range widget. See related aria- valuetext. See the official specs.
div [ ariaValueNow 1.5 ] [ text "Hello aria!" ]
Defines the human readable text alternative of aria-valuenow for a range widget. See the official specs.
div [ ariaValueText "value" ] [ text "Hello aria!" ]
Aria State Attributes
Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. See the official specs.
div [ ariaBusy True ] [ text "Hello aria!" ]
Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. See related aria-pressed and aria-selected. See the official specs.
div [ ariaChecked AriaTristateTrue ] [ text "Hello aria!" ]
Indicates the element that represents the current item within a container or set of related elements. See the official specs.
div [ ariaCurrent AriaCurrentPage ] [ text "Hello aria!" ]
Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. See related aria-hidden and aria- readonly. See the official specs.
div [ ariaDisabled True ] [ text "Hello aria!" ]
Indicates whether a grouping element owned or controlled by this element is expanded or collapsed. See the official specs.
div [ ariaExpanded AriaTFUTrue ] [ text "Hello aria!" ]
[Deprecated in ARIA 1.1] Indicates an element's "grabbed" state in a drag-and-drop operation. See the official specs.
div [ ariaGrabbed AriaTFUTrue ] [ text "Hello aria!" ]
Indicates whether the element is exposed to an accessibility API. See related aria-disabled. See the official specs.
div [ ariaHidden AriaTFUTrue ] [ text "Hello aria!" ]
Indicates the entered value does not conform to the format expected by the application. See related aria-errormessage. See the official specs.
div [ ariaInvalid AriaInvalidGrammar ] [ text "Hello aria!" ]
Indicates the current "pressed" state of toggle buttons. See related aria-checked and aria-selected. See the official specs.
div [ ariaPressed AriaTristateTrue ] [ text "Hello aria!" ]
Indicates the current "selected" state of various widgets. See related aria-checked and aria-pressed. See the official specs.
div [ ariaSelected AriaTFUTrue ] [ text "Hello aria!" ]
Aria Types
Value representing true, false, or undefined (not applicable). The default value for this value type is undefined unless otherwise specified. See the official specs
Convert an ariaTFUToString to a String
Value representing true, false, mixed, or undefined values. The default value for this value type is undefined unless otherwise specified. See the official specs
Convert an ariaTristateToString to a String
Token type for the ariaAutoComplete / aria-autocomplete attribute. See the official specs.
Convert an AriaAutoCompleteType to a String
Token type for the ariaCurrent / aria-current attribute. See the official specs.
Convert an AriaCurrentType to a String
Token type for the ariaDropEffect / aria-dropeffect attribute. See the official specs.
Convert an AriaDropEffectType to a String
Token type for the ariaHasPopup / aria-haspopup attribute. See the official specs.
Convert an AriaHasPopupType to a String
Token type for the ariaInvalid / aria-invalid attribute. See the official specs.
Convert an AriaInvalidType to a String
Token type for the ariaLive / aria-live attribute. See the official specs.
Convert an AriaLiveType to a String
Token type for the ariaOrientation / aria-orientation attribute. See the official specs.
Convert an AriaOrientationType to a String
Token type for the ariaRelevant / aria-relevant attribute. See the official specs.
Convert an AriaRelevantType to a String
Token type for the ariaSort / aria-sort attribute. See the official specs.
Convert an AriaSortType to a String