Learn HTML code for text background color names or text background color name tutorial. A color can be specified by using a color name:
<!DOCTYPE html> <html> <body> <p style="background-color:Tomato;">Tomato</p> <p style="background-color:Orange;">Orange</p> <p style="background-color:DodgerBlue;">DodgerBlue</p> <p style="background-color:MediumSeaGreen;">MediumSeaGreen</p> <p style="background-color:Gray;">Gray</p> <p style="background-color:SlateBlue;">SlateBlue</p> <p style="background-color:Violet;">Violet</p> <p style="background-color:LightGray;">LightGray</p> </body> </html>
Tomato
Orange
DodgerBlue
MediumSeaGreen
Gray
SlateBlue
Violet
LightGray