HTML Background colors are added to the website to make it more attractive.
Background colors can be added to elements like header(h1,h2,h3,h4,h5,h6), body, paragraph(p), tables etc.
CSS uses border color more effectively. For example- You can add a color to div, classes etc. This is covered in detail in our CSS tutorial.
You can use CSS for this.
Example of Background Colors to body, headers, and paragraph
Background Colors to table
You can add a background color to HTML table using bgcolor attribute.
Backgrounds Image in Table
We can also give backgrounds image to the table.