<url>

The standard CSS function for including external resources like images, fonts, or SVGs into your stylesheet.

/* Usage Example */
.hero {
  /* Loads an external image as a background */
  background-image: url(';images/hero.jpg');
}
Widely available Since 2016 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2016.

1+
1+
1+
12+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC