InternetUnicode Draft for Information Only
ContentHTML Data URL
HTML Data URLIn general sense, a data url is an internet standards track protocol for embedding a small file inline as the source or data of a element in a document internally. Although Data URL is supported by most modern user agent. the supporting of Data URL is still limited due to various reasons. Syntax of a Data URLdata:[<mediatype>][;base64],<data>data:the prefix of a data URL <mediatype>a MIME type string. The default value is 'text/plain; charset=US-ASCII if omitted ;base64an optional base64 token with a ';' seperator for non-textual data. ,a comma data seperator <data>the embed data Example of Data URLsThe Simplest Data URLThe simplest data URL is an empty data URL with default values.
HTML Document Input:
HTML Web Page Embedded Output: A Simple Escape-Encoded Data URLA simple data URL with default value can be used to embed escaped plain text.
HTML Document Input:
HTML Web Page Embedded Output: A base64-Encoded Text/Plain Data URLA base64-encoded data URL with default value can be used to embed base64-encoded plain text.
HTML Document Input:
HTML Web Page Embedded Output: A base64-Encoded Text/HTML Data URL with HTML ElementsA base64-encoded data URL with text/html media type can be used to embed base64-encoded html elements.
HTML Document Input:
HTML Web Page Embedded Output: A Simple Text/HTML Data URL with HTML ElementsA simple data URL with text/html media type can be used to embed escaped html elements.
HTML Document Input:
HTML Web Page Embedded Output: A Simple Text/HTML Data URL with <img> ElementA base64-encoded data URL with image/png/html media type can be used to embed base64-encoded png image.
HTML Document Input:
HTML Web Page Embedded Output: A Simple Text/HTML Data URL with ScriptA simple data URL with text/html media type can be used to embed escaped html elements.
HTML Document Input:
HTML Web Page Embedded Output: ©sideway ID: 180300002 Last Updated: 3/2/2018 Revision: 0 Ref: ![]() References
![]() Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019