<?xml version="1.0" encoding="utf-8"?>

Background image

Background image

Any element on the HTML page can have an image background. For this matter, we don't need the <img> tag. Instead, we use the HTML style attribute and the CSS background-image property. You can decorate the whole page this way if you apply the style attribute to the <body> element.

Improve your UX & Product skills with interactive courses that actually work