Is it possible to save image inside html? I want to create html with a few images. Maybe I need to decode image content with base64 and paste it in html markup?
Yes you can ! ex: background:url(wnaderknight. png) 25px 25px no-repeat, url(wnaderknight.
CTRL C + CTRL V.
Yes its possible, check this simple example: http://jsfiddle.net/MH7gF/
<img alt="" src="data:image/png;base64(...)" />
There is also simple converter.
it seems you are looking to use CSS Data URI's. http://css-tricks.com/data-uris/ you need to encode your image to base64 and set it using one of these data URI's within the HTML or the CSS as it works with both.
<img width="16" height="16" alt="star" src="data:image/gif;base64,..." />
li {
background: url(data:image/gif;base64,...) no-repeat left center;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With