Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

how to highlight text on HTML code example

Example 1: 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;
}

Example 2: mark tag in html

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

Tags:

Html Example

Related

try catch error throw new error code example utf-8' codec can't decode byte 0xed in position 0: invalid continuation byte "gensim" code example share data from parent screen to child in angular code example find unique value pairs in array javascript code example bash loop through array with insed code example win10 latest version iso download code example inital css file on html code example python countin base code example owl carousel loop code example python list check if has duplicates code example replace all occurence in vscode in file code example how to iterate through json object in javascript code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy