Basic HTML

Advance HTML

HTML Tags Reference

HTML Code Generator

HTML Resource


HTML Background Color




HTML background color example to set a inline css background color property.

Background Color in Paragraph:

Example-Code:

Example-Result:


Background color is Hexadecimal

You can choose more HTML color code.

Background Color set in <div> Tag:

Example-Code: (Paragraph Left)

Example-Result:


Division Section background background color is yellow and paragraph width is 220px.


Example-Code: (with Underline)

Example-Result:


Division Section background background color is yellow and paragraph width is 220px.