Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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;
}
 
PREVIOUS NEXT
Tagged: #html #highlight #text
ADD COMMENT
Topic
Name
7+5 =