Highlighting text with pure HTML

Back to index
Date: 2021-05-27
Category: htmlcss


To add emphasis to text, as if to highlight it, in HTML, it's possible to use the <mark> tag.

<p>
  <mark>TODO: buses</mark>
</p>

Result:

Example result