HTML background Attribute

 

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

 

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?
Let us know if you liked the post. That’s the only way we can improve.
Yes0
No0
Powered by Pixelbart

Leave a Comment

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