Data URI scheme: Difference between revisions

Content deleted Content added
Adding local short description: "Web page in-line data scheme", overriding Wikidata description "url server"
Tag: Incorrectly formatted external link or image
Line 5:
The syntax of data URIs is defined in [[Request for Comments|Request for Comments (RFC)]] 2397, published in August 1998,<ref>{{cite web|url=http://tools.ietf.org/html/rfc2397|title=RFC 2397 - The "data" URL scheme|author=Masinter, L|publisher=[[Internet Engineering Task Force]]|date=August 1998|access-date=2008-08-12}}</ref> and follows the [[Uniform resource identifier#Generic syntax|URI scheme syntax]]. A data URI consists of:
 
'''<pre>data''':['''''&lt;media content/type&gt;'''''][''';base64'''],'''''&lt;data&gt;'''''</pre>
 
* The '''scheme''', <code>data</code>. It is followed by a colon (<code>:</code>).
Line 14:
Examples of data URIs showing most of the features are:
 
:<codepre>data:text/vnd-example+xyz;foo=bar;base64,R0lGODdh</codepre>
:<codepre>data:text/plain;charset=UTF-8;page=21,the%20data:1234,5678</codepre> (outputs: "the data:1234,5678")
:<pre>data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD</pre>
 
The minimal data URI is <code>data:,</code>, consisting of the