Skip to content
Related Articles

Related Articles

Improve Article

HTML | <body> background Attribute

  • Last Updated : 19 Apr, 2021

The HTML <body> background Attribute is used to specify the background-image for the document. 

<body background="URL">

Attribute Values: It contains the value i.e URL Which specify the address of the background Image. 

  • Absolute URL: It points to another website.
  • Relative URL: It points to a file within a website.



<!DOCTYPE html>
        HTML body Background Attribute
<!-- body tag starts here -->
<body background=
        <h2>HTML <body> background Attribute</h2>
        <a href="#">
            It is a Computer Science portal For Geeks
<!-- body tag ends here -->


Supported Browsers: The browser supported by <body> background Attribute are listed below: 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :