Content deleted Content added
m moved Data: URL to Data: URI scheme |
reflect change of name (hope no-one minds); mention IE's old "about:" behaviour |
||
Line 1:
{{lowercase|title=data:
The '''data:
===Advantages===
* [[HyperText Transfer Protocol|HTTP]] headers are not required for embedded data, so <tt>data:</tt>
* Web browsers are typically limited to four concurrent connections to a server, so inline data frees up a download connection for other content.
* Browsers manage fewer cache entries for a file that contains <tt>data:</tt>
* Environments with limited or restricted access to external resources may embed content when it is disallowed or impractical to reference externally. For example, an advanced HTML editing field could accept a pasted or inserted image and convert it to a <tt>data:</tt>
===Disadvantages===
* Embedded content must be extracted and decoded before changes may be made, then re-encoded and re-embedded afterward.
* Base64-encoded <tt>data:</tt>
* URL-encoded <tt>data:</tt>
* Information that is embedded more than once is redownloaded as part of the containing file, and does not benefit from the browser's cache.
* Browser limits to
==Format==
data:[<mediatype>][;base64],<data>
The <mediatype> is an internet media type specification (with optional parameters
The
==Examples==
Line 46:
[[Image:DataUrlLarry.gif]]
Note that as
===CSS===
Line 66:
'd%3E%0D%0A%3Cbody%3E%3Ch1%3E42%3C%2Fh1%3E%3C%2Fbody%3E%0D%0A%3C%2Fhtml%3E'+
'%0D%0A','_blank','height=300,width=400');
==External links==
|