#### 33.6.5 Specifying row-group, row, and cell attributes with macros

You can specify HTML code to add attributes at precisely defined locations inside table row groups, rows, and cells. These attributes override the same attributes specified in the [Attributes] section:

Row-group attributes

Row attributes

Cell attributes.

Row-group attributes

The following sections let you control attributes of table row groups, and allow you to use macros in a row-group element: <thead>, <tfoot>, or <tbody>.

    [TableHeaderAttributes]
    ; table ID = text (macro) to put inside <thead>,
    ;  overrides [Attributes] for <thead>

    [TableFooterAttributes]
    ; table ID = = text (macro) to put inside <tfoot>,
    ;  overrides [Attributes] for <tfoot>

    [TableBodyAttributes]
    ; table ID = = text (macro) to put inside <tbody>,
    ;  overrides [Attributes] for <tbody>

For these overrides to take effect, you must also specify either of the following:

- for all tables, any one of:

      [Tables]
      HeadFootBodyTags = Yes
      AccessMethod = Scope
      ScopeRowGroup = Yes

- for table groups, any one of:

      [TableAccess]
      TableID = HFBTags
      TableID = Scope
      TableID = ScopeRowGroup

See also:

§33.3.2.4 Wrapping table row groups

§33.3.2.6 Overriding row and column group settings.

Row attributes

The following sections let you control row attributes for all the rows in a table (or group of tables), and use macros in a row before and after other content. See also §35.1 Identifying table rows and columns for ways to identify table rows for WAI (Web Accessibility Initiative) markup.

    [TableRowAttributes]
    ; table ID = text (macro) to put inside <tr>, overrides [Attributes]

    [TableRowStartMacros]
    ; table ID = text of macro to put on line after <tr>

    [TableRowEndMacros]
    ; table ID = text of macro to put before </tr>

See also:

§33.4.5 Specifying attributes for table rows

Cell attributes

The following sections let you control cell attributes for all the cells in a table (or group of tables), and use macros in a cell before and after other content.

    [TableCellAttributes]
    ; table ID = text (macro) to put inside <td>, overrides [Attributes]

    [TableCellStartMacros]
    ; table ID = text of macro to put after <td>

    [TableCellEndMacros]
    ; table ID = text of macro to put before </td>

Previous Topic: 33.6.4 Turning processing on and off around selected tables

Next Topic: 33.6.6 Capturing table row and column counts with variables

Parent Topic: 33.6 Using macros to control table properties

Sibling Topics:

33.6.1 Invoking macros around tables

33.6.2 Adding space before tables

33.6.3 Adjusting space after tables

33.6.4 Turning processing on and off around selected tables

33.6.6 Capturing table row and column counts with variables

33.6.7 Selectively modifying table text with macros: an example