Base64 in HTML

Опубликовано: 22 Июль 2011
на канале: arthurpizza
18,849
73

In this video, I make the asumtion that you know basic HTML. If you want to learn HTML or just need a refresher course, visit http://www.w3schools.com/ It's a plethora of web standards information.

If you reference last Friday's video, you'll notice that encoding the binary is not exactly useful. Most modern browsers can decode base64 natively. In this video I'll show you the simple code it takes to embed the base64 files into HTML.

The first thing you need to know is the Internet Media Type:

image/jpg
image/gif
audio/ogg
video/webm
application/x-bittorrent

After that it's just a mater of knowing how to build the link/source.

data:application/x-bittorrent;base64,9gqARDSRBHegyG...

Keep experimenting and playing with the code. Perhaps you can come up with something I haven't thought of. Actually that's more likely than not. Have fun.