Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 18, 2021 04:51 pm GMT

Highlight text with HTML

Hello Everyone
Today, we'll be discussing about how we can highlight text using html only. You can check it out this video for reference.

The <mark> HTML element represents text which is marked or highlighted for reference or notation purposes, due to the marked passage's relevance or importance in the enclosing context.

Let's consider a example

<body>  <p><mark>Important</mark> things to notice</p></body>

The default highlight color is Yellow but we can change it by using CSS.

mark{  background-color:magenta;}

Do you know about these html tags <sub> and <sup>. For this check the following video.

You can support my work


Original Link: https://dev.to/devrohit0/highlight-text-with-html-apo

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To