HTML background Attribute

 Night Mode  Light Mode

 

Usage and Definition

The background attribute is a is a global attribute. It specifies the background image, behind the element content.

The only one value can be set for the background attribute. And he is URL of the image.

Example :

<body background="background-img.jpg">
<p>I like the WebPlover. Below is the link of WebPlover blog</p>

<a href="https://www.webplover.com"> WebPlover </a>
</body>
Result

I like the WebPlover. Below is the link of WebPlover blog

WebPlover

 

Next ❯

❮ Previous

Here are a few tutorials for you to read next:

If you find this tutorial helpful, then please Subscribe to our YouTube Channel for video tutorials, and share this article on social media.

Was this post helpful?

Leave a Comment

Your email address will not be published. Required fields are marked *