# Distinguish relevant highlights from important warnings

Canonical: https://githtml.com/guides/mark-versus-strong-report-highlights
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

Use mark for text highlighted because it is relevant in the current context, and strong for text whose importance is part of the document's meaning. Explain why a passage is highlighted when the distinction matters. Neither element should rely on a particular background color to communicate a requirement or warning.

## Choose the right representation

A search excerpt and a safety warning can both be yellow, but they serve different purposes. The excerpt points to a match; the warning expresses importance. Treating every emphasized phrase alike makes a report harder to scan and leaves readers guessing which highlights require action.

## Apply the pattern deliberately

Use mark sparingly for selected evidence or terms discussed nearby. Give a warning an explicit label and complete sentence rather than highlighting only a dangerous value. Avoid long highlighted paragraphs, which erase the contrast between the important phrase and its context.

1. Decide whether the emphasis means current relevance, stress, or substantive importance.
2. Add explicit wording when a highlight signals a required action or material limitation.
3. Review the passage without background colors to confirm its meaning survives the styling.

````html
<p>The relevant phrase is <mark>before approval</mark>.</p>
<p><strong>Required:</strong> obtain approval before proceeding.</p>
````

## Give each kind of emphasis a different job

Suppose a report discusses the phrase before approval in an existing requirement. Mark can indicate the selected words because they are the focus of that discussion. A separate sentence saying approval is required expresses importance and can use strong. These are related but different editorial jobs. If every sentence receives both treatments, readers lose the ability to distinguish evidence being examined from an instruction they must follow.

Keep the explanation outside the color convention. A legend saying yellow means pending review can help visually, but the paragraph should still name its pending status. Printed grayscale copies, custom reader colors, and nonvisual reading can remove the distinction. Do not announce that a document is accessible merely because you chose a semantic element: review how the actual wording communicates the requirement and how the target reading tools present it.

Check highlight styles against both foreground text and neighboring links. A background that looks attractive behind dark body text may make a copper link or a pale code token hard to read. Scope custom styles to the intended content and preserve ordinary link cues. When reviewing a long passage, highlight the smallest meaningful phrase and explain why it matters. If the whole paragraph is essential, improve the heading and summary instead of turning the entire page into one continuous highlighted block.

## Check the finished reading experience

Check light and dark appearances and read the text without highlight styles. A reader should still understand which statement is required and which passage was merely selected for discussion.

## Sources and further reading

- [MDN: mark](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/mark)

## Related guides

- [Move a reading task between iPhone and iPad without losing context](https://githtml.com/guides/move-reading-between-iphone-ipad-without-losing-context)
- [Read technical HTML comfortably on iPad in portrait and landscape](https://githtml.com/guides/read-technical-html-ipad-portrait-landscape)
- [Build a small GitHub document reading queue with favorites and recents](https://githtml.com/guides/favorites-recents-document-reading-queue)
- [Find answers in long HTML reports with better search queries](https://githtml.com/guides/search-long-html-report-with-better-queries)

Editorial approach: https://githtml.com/guides/about
