+ 1

How to highlight one word with colors in html?

17th Aug 2019, 1:09 PM
Tushar Makkar
Tushar Makkar - avatar
2 Respostas
+ 1
You can use <mark> tag. Ex: <p> This word is <mark>highlighted</mark> </p> Use css for custom color. mark { background-color: powderblue; }
17th Aug 2019, 3:02 PM
Rizal
Rizal - avatar
0
You give this on word its own tag and set the color in css Example: <p>This is <span style="color: green;">colored</span> Text</p>
17th Aug 2019, 2:57 PM
Nico Ruder
Nico Ruder - avatar