HTML5

CSS Image Sprites


Leave a reply                     

What Are CSS Sprites? Why They’re Cool? How To Use Them?

Do you really understand them? The name might be a little misleading, because sprites aren’t little images like you might be picturing, a sprite is actually one big image. Have you ever seen the CSS technique where the “on” and “off” states of a button are contained within the same image and are activated by shifting the background-position?
You may combine an unlimited number of images into one. The origin of the term “sprites” comes from old school computer graphics and the video game industry. The idea was that the computer could fetch a graphic into memory, and then only display parts of that image at a time, which was faster than having to continually fetch new images. The sprite was the big combined graphic. CSS Sprites is pretty much the exact same theory: get the image once, shift it around and only display parts of it, saves the overhead of having to fetch multiple images. Continue reading

HTML5 JavaScript Geolocation in Browser


Leave a reply                     

The Geolocation API provides a method to locate the user’s exact position. This is useful in a number of ways like providing a user with location specific information, providing route navigation etc.

Although it’s not actually part of the HTML5 specification, as it was developed as a separate specification by the W3C.

Compatibility

Currently the W3C Geolocation API is supported by the following desktop browsers:

Continue reading