Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
- Attribute of
- HTML Body Tag: Master The Most Important HTML Element Now
- What does
- 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.