DEV Community

loading...

Discussion on: Highlight text with HTML mark tag

Collapse
yuyabu profile image
yuyabu

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

This post’s is nice solution.👍

Collapse
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 🙂

Forem Open with the Forem app