The <url> CSS data type is a pointer to a resource. The resource could be an image, a video, a CSS file, a font file, an SVG feature etc.
<url> = <url()>
The value is either of the following:
<url()>The url() function accepts only a URL literal string (with or without quotes).
Note: The specification defines an alternative function called src() that accepts a URL string or a CSS variable. But no web browser has implemented the function yet.
| Specification |
|---|
| CSS Values and Units Module Level 4> # url-value> |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/url_value