28.2.2.1 Assigning a link class
with a PI marker
You can use DITA PI marker LinkClass to assign
a CSS class to a single link, as follows:
- For each link:
- Place a LinkClass PI marker
in your document, just before the link.
- Make the content of the marker
the name of the CSS class you want applied.
For example, to apply CSS class traffic to a particular
link, somewhere before the link you would insert a LinkClass PI marker
with content:
traffic
CSS class traffic would be applied
(only) to the next link after the PI marker:
<a class="traffic" ...>link text</a>
See also:
§28.2.3
Assigning link attributes with PI markers
§34.3.3
Using a PI marker to assign WAI link attributes
§38.3 Adding
attributes with PI markers
Previous Topic: 28.2.2 Specifying
link class
Next Topic: 28.2.2.2 Assigning
a link class with a paragraph format
Parent Topic: 28.2.2 Specifying
link class
Sibling Topics:
28.2.2.2 Assigning
a link class with a paragraph format