data-type
<url> — CSS reference
The URL type represents a resource reference. CSS accepts quoted URLs and certain unquoted forms; quote paths containing spaces or special characters. Relative references in a stylesheet generally resolve against that stylesheet’s URL, not the document containing its link. Resource loading can fail even when syntax is valid.
Formal Syntax & Structure
css syntaxcss
url("image.svg")Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a {background-image:url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27/%3E")} #b {background-image:none}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>