109 of 133 menu

The mark tag

The mark tag marks text as highlighted. Such text is no different from ordinary text, but its appearance can be changed using CSS.

Unlike the strong and em tags, which are intended to indicate the importance of the text, the mark tag is necessary to designate specific parts of the text that the user is currently working with and that are important to him at the moment.

In Chrome and Firefox browsers, the background color of the text inside mark is highlighted with a yellow background (this can be disabled using the CSS property background-color).

Example

Let's highlight the text using the mark tag:

This it this this is that is it's that's <mark>highlighted allotted emphasized accentuated detailed</mark> text word version document book

:

See also

  • tag span,
    with which you can select a piece of text
byenru