Some important differences between Canvas and SVG: - Canvas is resolution dependent while SVG is not - Canvas does not provide any support for event handlers while SVG does - Canvas is suitable for graphic-intensive games while SVG is not suitable for gaming - Canvas is suitable for small rendering areas while SVG is suitable for large rendering areas like Google maps
Correct Answer: Some of the new features provided in HTML5 are: - It provides support for local storage - New form controls, like calendar, date, time, email, url, search -
Correct Answer: - SVG is the abbreviation for Scalable Vector Graphics and is recommended by W3C - It is used to define vector-based graphics for the Web - The graphics are defined in XML format -An important quality of SVG graphics is that their quality is maintained even when they are zoomed or resized - All the element and attributes of SVG files can be animated
Correct Answer: With HTML5, it is possible for the web pages to store the data locally in the user's browser This web storage is much faster and secured than the cookies Also, a larger amount of data can be stored without causing any adverse effect to the performance of the website The data here is not included with every server request It is used ONLY when it is asked for It is only that particular web page that can access the data stored by itself
9. Differentiate between localStorage and sessionStorage objects.
Correct Answer: - localStorage object stores the data without an expiry date while sessionStorage object stores the data only for one session - With localStorage object, data will not be deleted when the browser window is closed while the data is deleted when the browser window closes with sessionStorage objects
10. What is the concept of Application Cache in HTML5? What are its advantages?
Correct Answer: The Application Cache concept introduced by HTML5 means that a web application is cached, and accessible without an internet connection There are three advantages of Application Cache: 1Offline browsing - users can use the application when they're offline 2Speed - cached resources load faster 3Reduced server load - the browser will only download updated/changed resources from the server