프로그램&DB/HTML5

A simple way to highlight text in color using HTML | 간단하게 글자에 배경색 넣는 방법

Josep.H.S 2020. 3. 18. 14:52

Highlighting text can help bring important information immediately to the readers' attention, such as "Important!"

The following html code can be used to highlight text in a specific color:

  • Cyan: <span style="background-color:#00FEFE">Cyan Text</span>
  • Green: <span style="background-color:#00FF00">Green Text</span>
  • Yellow: <span style="background-color:yellow">Yellow Text</span>
  • Pink: <span style="background-color:#FF00FF">Pink Text</span>

The above html codes will highlight text in cyan, green, yellow and pink respectively.

  • Cyan: Cyan Text
  • Green: Green Text
  • Yellow: Yellow Text
  • Pink: Pink Text

You can change the color code as you wish. However, I recommend you minimize the use of highlights.

 

 

Ref: https://www.thewordcracker.com/en-us/a-simple-way-to-highlight-text-in-color-using-html/