Deprecated in HTML5. Do not use.

<body bgcolor=””>

Sharing is caring!

Attribute of
HTML Body Tag Before And After HTML5: What's The Difference?
What does <body bgcolor=""> do?
Was used to set the background color on a document. Deprecated. Use CSS instead.

All of the styling attributes related to the <body> have been deprecated in HTML5. For information on styling the background of a web page see the information provided on the background page. For general information about styling web pages, see our CSS tutorial.

Adam is a technical writer who specializes in developer documentation and tutorials.