Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html highlight text

For HTML5: (with 'mark' tag)

<p>Do not forget to buy <mark>milk</mark> today.</p> 

In CSS file: (To customize highlight)

mark {
  background-color: yellow;
  color: black;
}
Comment

how to highlight text in html

<mark>text</mark>
Comment

PREVIOUS NEXT
Code Example
Html :: how to make a username and password in html 
Html :: html data-target modal 
Html :: auto update time in html 
Html :: watermark in html5 
Html :: react hooks html imput on change 
Html :: bootrsrap 
Html :: ios to pc file transfer 
Html :: icheck js 
Html :: balise a html 
Html :: align button on bottom of div 
Html :: link tag 
Html :: boilerplate code in html 
Html :: how to put a name on a fieldset 
Html :: nested columsn inside bootstrap 
Html :: action form for this page in html 
Html :: pug meta viewport 
Html :: how to change colour of part of a text in html 
Html :: split screen html 
Html :: html put newline in text with  
Html :: was blocked because of a disallowed MIME type (“text/html”). 
Html :: html article 
Html :: bootstrap 5 hamburger menu 
Html :: netlify dev 
Html :: bootstrap navs tabs code 
Html :: html with new line  
Html :: input datetime without time 
Html :: html partial view 
Html :: html online editor 
Html :: fieldset margin 
Html :: wow html 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =