How to give a yellow background to a text without using CSS

You can use the mark element to surround the target text.

Here's an example:

<mark>
  test
</mark>

The effect preview:

test

This article is originally created by tooli.top. Please indicate the source when reprinting : https://www.tooli.top/posts/html_mark

Posted on 2023-04-15 Mail to author