html highlight text
snippet in html

html highlight text

user201

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;
}

css mark color

user5090

<style>
mark { 
  background-color: yellow;
  color: black;
}
</style>

<mark>Highlighted text!!</mark>

how to highlight text in html

user3953

<mark>text</mark>

mark tag in html

user1329

mark {
  display: inline-block;
  line-height: 0em;
  padding-bottom: 0.5em;
}

how to highlight text in css

user604

<body>
<p>The Math test is on <mark>Friday</mark>.</p>
</body>