FrontendTips
GitHub ★
Highlight text with the mark element
The semantic
`<mark>`
element provides the ability of highlighting text inside an element. Highlighting keywords in search results is a popular example of using the
`<mark>`
element.
Smooth
<
mark
>
scrolling
</
mark
>
with pure CSS
Demo
Highlight text with the mark element
Hide an element with Chrome DevTools
Ignore case sensitivity in a CSS attribute selector