Highlight parts of a text:
<p>Do not forget to buy <mark>milk</mark> today.</p>
Try it Yourself »
The <mark>
tag defines text that should be marked or highlighted.
The numbers in the table specify the first browser version that fully supports the element.
Element | |||||
---|---|---|---|---|---|
<mark> | 6.0 | 9.0 | 4.0 | 5.0 | 11.1 |
The <mark>
tag also supports the Global Attributes in HTML.
The <mark>
tag also supports the Event Attributes in HTML.
HTML tutorial: HTML Text Formatting
HTML DOM reference: Mark Object
Most browsers will display the <mark>
element with the following default values:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!