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

CSS background-image property

CSS background-image property

For setting images as a background, we use the background-image property. Its url value specifies the image location in an internal file system (relative link) or provides an external address (absolute link). Its standard syntax requires parentheses (( )), quotation marks (" "), and a semicolon (;) at the end of the declaration.

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