Base64 in HTML <source>
<source> lets the browser pick the first format it supports. Each source can be a data URI.
Example
<audio controls>
<source src="data:audio/ogg;base64,T2dnUwACAAAAAAAAAAA..." type="audio/ogg" />
<source src="data:audio/mpeg;base64,SUQzBAAAAAAAI1RT..." type="audio/mpeg" />
</audio> Notes
- Always include the type attribute so the browser can skip unsupported formats without decoding them.
Comments (0)
Questions, ideas or a bug in “Base64 in HTML <source>”? Leave a comment, rate the tool, or reply to others.
No comments yet. Be the first to share your feedback!