DEV Community

Discussion on: Highlight text with HTML mark tag

yuyabu profile image

wow. I didn’t know mark tag.
in my case, I defined style and span tag.

This post’s is nice solution.👍

samanthaming profile image
Samantha Ming Author

That's what I use to do too! Until I realize there's a more semantic option. Next time you're doing that, feel free to use the <mark> tag 🙂