spec checked

MDN HTML mark text element

Documents the mark element for passages relevant to the user's current activity, including search result examples, accessibility notes, and warnings not to use mark for unrelated syntax highlighting.

Open source

Pattern Decisions This Source Supports

Pattern Supported decision Required contract Claim note
Search result highlighting Choose search result highlighting when returned results need visible evidence of where the submitted query matched. A highlight represents the submitted query or configured highlight query, not a decorative emphasis chosen independently from search matching. MDN documents mark as suitable for context-relevant passages such as words that matched a search operation.

Evidence Role

This source is treated as spec evidence. Use it to validate the decision rules above, not as a visual style reference.

Publisher: MDN Web Docs. Last checked: .