HTML <mark> Tag
<mark> HTML element marks the text as selected. In the browser, the background color of the text inside the
<mark> is highlighted in yellow.
Authors usually use
<mark> to draw the reader’s attention to parts of the text. Note that such a text does not say anything about the importance of the selected fragment, but only suggests paying attention to it.
- Permitted Parents
- Any element that accepts phrasing content
- Inline and text
- Start/End Tags
- Start tag: required, End tag: required
The Australian population is <mark>22.68 million</mark> people as of 2012
<mark> tag also supports the Global Attributes in HTML5
<mark> tag also supports the Event Attributes in HTML5
|Tablets / Mobile|