Ronalds Vilciņš

04Mab%!0rD

HTML mark tag

The mark tag is an HTML element that is used to highlight a section of text for reference purposes. It is typically used to draw attention to a specific part of a document, such as a passage of text that has been updated or a section that is relevant to the current context. The text that is contained within the mark tag is usually rendered in a different color or style to make it stand out from the rest of the document.

You can also use the mark tag in conjunction with CSS styles to customize the appearance of the highlighted text. For example:

<p>
  <mark>Highlighted text</mark>
</p>

The default background color of <mark> is yellow. You can style <mark> with CSS:

mark {
  background: blue;
  color: white;
}