If you’d like to set an image as the background of a web page or an HTML element, rather than simply inserting the image onto the page, then you’ll need to use the CSS background-image property. This CSS property replaced the background image attribut
Background Image on a HTML element. To add a background image on an HTML element, use the HTML style attribute and the CSS background-image property: Example.
1. Upload the background image. 2. Open the HTML file. 3. Add the head of the HTMLdocument using the ' and ' tags. 4. Insert the and tags between the "Head" tags. 5. Add the body {element. 6. Add background-image: url(" "); inb
Post a Comment:
Showing 0 Comments: