Search⌘ K

Using Background Images

Explore how to use CSS to add background images to HTML elements and control their display using properties such as background-repeat and background-color. Understand how to combine images with colors and create visual effects by managing image tiling and repetition in web design.

The <img> tag can add graphics to your web pages. Since that, you have seen many simple tricks to use images and even created small interactions using JavaScript. CSS also helps you add powerful visual elements and effects with images, going far beyond the features of the <img> tag.

In this section, you will get to know a number of CSS features based on graphics and images.

The samples can be found within the ...