Omni Systems, Inc. |  | Mif2Go User's Guide, Version 55 |  |  |  |  |

> 27 Marking HTML table cells for WAI > 27.3 Using the id/headers method to identify table cells > 27.3.8 Identifying individual table cells by row and column

### 27.3.8 Identifying individual table cells by row and column

When you use the following settings, Mif2Go automatically generates the WAI id attribute for all row and column headers, and the headers attribute for all individual cells:

[Tables]

;RowIDs and ColIDs set row and col IDs in table header cells

; and the matching headers attribute in table body cells.

; ColIDs = No (to not use), or Yes

; adds id=colN to first cell in header row of each column,

; adds headers=colN to each cell below in the same column(s).

ColIDs=No

; ColHead is often seen in examples as "header", but this is

; not essential; it can be any useful identifier:

ColHead=col

; RowIDs = No (to not use), or Yes

; if ColIDs are used, does not affect all the header rows.

; adds id=rowN attribute to the first cell of each body row,

; adds headers=rowN to each following cell in that row.

RowIDs=No

; RowHead is usually row, but again could be anything:

RowHead=row

You can override each of the *IDs settings in the [TableAccess] section for selected tables by specifying the same setting, prefixed with No, as a property; see §27.4 Overriding default table-cell settings.

Column and row identifiers

The values you specify for ColHead and RowHead are the names Mif2Go uses for column and row identifiers. For example, if you specify ColHead=name, every cell in column N gets attribute id="name N". If you do not specify values for ColHead and RowHead, Mif2Go uses the defaults: col and row, respectively.

Columns

When you specify ColIDs=Yes, Mif2Go generates the following identifiers for each column:

id="col N" | for the first (top left) header cell in column n
headers="col N" | for each body cell in column n

Mif2Go interprets straddled column-header cells as applying to all the body cells under them. For example, if the header cell for column 3 also straddles columns 4 and 5, Mif2Go generates headers="col3" for the body cells in columns 3, 4, and 5.

Rows

When you specify RowIDs=Yes, Mif2Go generates the following identifiers for each row:

id="row N" | for the first (top left) cell in row n that does not already contain an id attribute (such as id="col1" in the first header row)
headers="row N" | for each body cell in row n to the right of the id=row n cell

> 27 Marking HTML table cells for WAI > 27.3 Using the id/headers method to identify table cells > 27.3.8 Identifying individual table cells by row and column

| Mif2Go User's Guide: 27.3.7 Column-span and row-span extent |  | Mif2Go User's Guide: 27.3.9 Column and row extent |