Java Reference
In-Depth Information
In this chapter, we've learned the following:
• HTML5 is the latest incarnation of the Hypertext Markup Language. It covers a
variety of technologies, including several APIs that are accessible using JavaScript.
data- attributes help to embed custom data into a web page that can then be used
to enhance the user experience with JavaScript.
• The Web Storage API allows key-value pairs to be stored on the user's device in a
similar way to cookies, but without the same storage restrictions.
• The Geolocation API allows you to access the geographic coordinates of the user's
device, as long as the user gives permission.
• The Web Worker API can be used to perform computationally intensive tasks in the
background, which helps to avoid websites becoming unresponsive.
• The <audio> and <video> elements can be employed to embed audio tracks and
video clips in a web page. They also have aMedia API that can help control the
playback using JavaScript.
• The canvas element can be used to dynamically draw geometric shapes, fonts, and
images on a web page in real-time using JavaScript.
• A shim or polyfill is a piece of code that adds support of missing features to older
In the next chapter, we'll cover how to organize and optimize your code.
[7] There is no actual limit in the specification, but most browsers have a limit set at 5GB per
Search WWH ::

Custom Search