Visually similar to the <mark>
tag, but without the semantic relevance. Highlights draw readers’ attention, just like when you were in school and you highlighted important passages. This visual cue helps readers locate specific information more quickly when revisiting a text.
To create highlights, add the .highlight
, class to any sentence in a paragraph for emphasis.
This text is <span class="highlight">highlighted</span>, but not this text.