HTML Tutorial | Text Color

HTML text-color is used to give different color to any HTML element on web page.

  • HTML Text color are define by style="color:value;" syntax.
  • Value can given by color name (like blue), by rgb code (like rgb(255,0,170))or by Hex code (like #ff22aa)
  • It can be used in any HTML element inside Opening tag.
   <p style="color:red;">This text becomes red.</p>
   <p style="color:rgb(0,255,0);">This text becomes green.</p>
   <p style="color:#0000ff;">This text becomes blue.</p>

Best Use:360p or more (480p or 720p)

Best Use:360p or more (480p or 720p)