### 15.4.6 Assigning attributes to DITA elements

You can apply attributes to a DITA block or inline element by assigning attribute="value" pairs to the FrameMaker format mapped to the element. The attributes you assign with configuration settings apply to all instances of the element in question. Only those attributes assigned to elements mapped from paragraph formats can be overridden with markers.

The following are special cases:

• A value for the id attribute can be assigned only with a DITAElemID marker.

• Attributes of <xref> elements require different settings; see §15.10 Configuring cross references and links for DITA.

• The outputclass attribute can be assigned to the root element only with a DITATopicOutputclass marker.

In this section:

§15.4.6.1 Specifying a value for the id attribute

§15.4.6.2 Including an id attribute in every element

§15.4.6.3 Specifying attribute values for the root element of a topic

§15.4.6.4 Specifying attribute values for a block element or parent

§15.4.6.5 Specifying attribute values for an inline element

§15.4.6.6 Providing outputclass attributes for all elements

See also:

§15.6 Converting tables to DITA XML

| 15.4.5 Assigning multiple typographic elements to a format |  | 15.4.6.1 Specifying a value for the id attribute |