Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Accessibility
  3. ARIA
  4. ARIA reference
  5. Attributes
  6. aria-rowspan

ARIA: aria-rowspan attribute

Thearia-rowspan attribute defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.

Description

Similar to therowspan attribute of the<td> and<th> elements, but for cells and gridcells which are not contained in a native table, thearia-rowspan attribute defines the number of rows spanned by acell orgridcell within atable,grid, ortreegrid.

This attribute is intended for cells and gridcells which arenot part of an HTML<table>. When a cell is nested in a semantic<table>, therowspan attribute should be used when a or spans more than one row. If both are present,rowspan takes precedence overaria-rowspan. But, like all ARIA attributes,aria-rowspan only impacts the accessibility tree. It doesn't change your layout.

Note:ARIA modifies the accessibility tree and how assistive technology presents content to your users. ARIA doesn't change anything about an element's function, behavior, or appearance. When using non-semantic elements, you must use CSS to manage layout and appearance.

The value ofaria-rowspan is an integer greater than or equal to 0 and less than the value which would cause the cell or gridcell to overlap the next cell or gridcell in the same column. Setting the value to0 indicates that the cell or gridcell is to span all the remaining rows in the row group. The default value is1.

Values

<integer>

An integer greater than or equal to0 and less than would cause a cell to overlap the next cell in the same column.

Associated interfaces

Element.ariaRowSpan

TheariaRowSpan property, part of theElement interface, reflects the value of thearia-rowspan attribute.

ElementInternals.ariaRowSpan

TheariaRowSpan property, part of theElementInternals interface, reflects the value of thearia-rowspan attribute.

Associated roles

Used in roles:

Inherited into roles:

Specifications

Specification
Accessible Rich Internet Applications (WAI-ARIA)
# aria-rowspan

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp