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>
Syntax
<url> = <url()>
Values
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.
Specifications
| Specification |
|---|
| CSS Values and Units Module Level 4 # url-value |
See also
© 2005–2024 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