33.4.1 Specifying attributes for all tables

You can specify default HTML attributes for most table-related tags, although values for some attributes might not be recognized by some browsers.

To specify default attributes for all tables:

[Attributes]
; HTML element = attributes (macro) to set

You can specify attributes here for the following tags: body, table, tr, td, th, thead, tfoot, and tbody. For example:

[Attributes]
table= rules="rows"
th= align="left" bgcolor="yellow"
td= valign="top"

List all attributes for a given tag on one line, even if that line is very long. Also see §33.6.5 Specifying row-group, row, and cell attributes with macros.

No border, cellspacing, or cellpadding

If you list attributes for the <table> tag, do not include border, cellspacing, or cellpadding; if you do, DITA2Go writes duplicate assignments for any of these you specify in [Attributes]. Use one of the following instead:

Also see §33.4.8.2 Taming border, cellspacing, and cellpadding settings.

Previous Topic:  33.4 Specifying table attributes

Next Topic:  33.4.2 Overriding attributes for selected tables

Parent Topic:  33.4 Specifying table attributes

Sibling Topics:

33.4.2 Overriding attributes for selected tables

33.4.3 Assigning a CSS class to a table

33.4.4 Using PI markers to assign attributes to tables, rows, or cells

33.4.5 Specifying attributes for table rows

33.4.6 Specifying attributes for table cells

33.4.7 Eliminating automatically generated attributes

33.4.8 Adjusting borders, cell spacing, and cell padding

33.4.9 Determining the width of table columns

33.4.10 Deciding what to do with empty paragraphs in table cells