<link> with data: Protocol URL

Test of Filter

This text will be green if the rule has been applied.

Code Syntax

<link rel="stylesheet" href="data:text/css,%23testElement { color: %2300cc00; }" />

Browser Support / Behaviour

Applied By

Not Applied By



Special Notes

A related technique is to use a javascript: protocol url (<link rel="stylesheet" type="text/css" href="javascript: 'styles.css';" />) however, no browsers tested applied the .css file specified in this way.