An Interest In:
Web News this Week
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
December 18, 2021 04:51 pm GMT
Original Link: https://dev.to/devrohit0/highlight-text-with-html-apo
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.
Original Link: https://dev.to/devrohit0/highlight-text-with-html-apo
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To