How to highlight text on the page | Using CSS
To
highlight important text on the page just wrap that important text with the a
<span> class
and
add CSS rules to that span class .
here
is an example:
<p>Summer
is to hot in India, so people travel to <span class=”highlight”>hill
stations</span> and other cooler regions in India to beat the heat and
chill</p>
CSS
code to highlight the text:
.highlight{
background-color:yellow;}
Comments
Post a Comment
Thanks for Visiting for any questions or suggestions please comment below
Cheers,