<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()>

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