Main content

aria-valuemax

Characteristics

Type:

  • String

Related Concepts:

  • XForms
  • range

Used in Roles:

  • range

Inherits into Roles:

  • progressbar
  • scrollbar
  • slider
  • spinbutton

Value:

  • number

Sets or retrieves the maximum value that a user can provide.

The aria-valuemin and aria-valuemax properties together specify the allowable range of an entry field, whereas the aria-valuenow property specifies the value currently selected.

A range widget may start with a given value, which can be increased until a maximum value, defined by this property, is reached.

Declaring the minimum and maximum values allows alternate devices to react to arrow keys, validate the current value, or simply let the user know the size of the range. If the aria-valuenow has a known maximum and minimum, the author should provide properties for aria-valuemax and aria-valuemin. Authors must ensure the value of aria-valuemax is greater than or equal to the value of aria-valuemin.

Note  For cross-browser compatibility, always use the aria attribute syntax to access and modify aria properties, for example object.setAttribute("aria-valuenow", newValue).

Syntax

HTML
<element aria-valuemax="p" ... >
JavaScript
object.setAttribute("aria-valuemax",value);var value = object.getAttribute("aria-valuemax");

Microsoft Active Accessibility Properties:

  • N/A

UI Automation Properties: 

  • MaximumProperty (RangeValue Pattern)

UI Automation AriaProperties Property:

  • valuemax
More in this category: « aria-sort aria-valuemin »