<url>
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()> | <src()>
Values
The value is either of the following:
<url()>
-
The
url()
function accepts only a URL literal string (with or without quotes). <src()>
-
This function can accept a URL string or a CSS variable.
Specifications
Specification |
---|
CSS Values and Units Module Level 4 # url-value |