{{CSSRef}}
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.
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).
- : The
[!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
{{Specifications}}
See also
{{cssxref("url_function", "url()")}}