突出

<mark> 元素是 HTML5 中的新元素,用於標記或突出顯示文件中的文字由於其在另一個上下文中的相關性1

最常見的例子是在搜尋結果中,使用者輸入了搜尋查詢,並顯示了突出顯示所需查詢的結果。

<p>Here is some content from an article that contains the <mark>searched query</mark>
that we are looking for. Highlighting the text will make it easier for the user to 
find what they are looking for.</p>

輸出:

StackOverflow 文件

常見的標準格式是黃色背景上的黑色文字,但可以使用 CSS 更改。