Interactive online courses HTML Academy
2026-03-09 14:09 Diff

The background image can be assigned using the CSS property background-image. This can be done as follows:

selector { background-image: url("image-address"); }

The image address must be enclosed inside url("..."). The addresses for the background images work in the same way as addresses for regular images, which you learned how to specify in the section about links and images.

An element can be assigned both a background color and a background image. In this case, the image will be displayed over the background color.

In this section, we will use some excellent icons created by Denis Sazhin to create experimental images.