Highlight
Text that is highlighted for emphasis or to show that it was added or removed.
Defaults
To highlight an element, add the class cd-highlight.
This text is highlighted.
<mark class="cd-highlight">This text is highlighted.</mark>Added/Removed
To highlight text that was added to, or removed from, a document, add the classes cd-highlight and either cd-variant-added or cd-variant-removed.
We finish each other's
sandwiches
sentences
.
We finish each other's
<del class="cd-highlight cd-variant-removed"
>sandwiches</del
>
<ins class="cd-highlight cd-variant-added">sentences</ins>
.Target Text
If the URL of the current page includes a text fragment, the target text will automatically have styling applied. To simulate this style on other text, add the classes cd-highlight and cd-variant-target.
This text is styled like the target of a text fragment.
<mark class="cd-highlight cd-variant-target">
This text is styled like the target of a text fragment.
</mark>