Local storage: Stores data with no expiration date. All the other browsers like Chrome, Opera, Firefox, Safari and IE8+ support Web Storage. IE7 and older versions do not support Web Storage. Unlike cookies, the data stored are not included with every HTTP request. It can store up to 10MB of data per domain. It has a fairly simple API to retrieve/write data into the local storage. Q.8: What do you understand by web storage?Īns: It is a simple client side database that allows the users to persist data in the form of key/value pairs. Q.7: What is relationship between and tag in HTML5?Īns: The element represents a group of introductory or navigational aids and usually contains the section’s heading in which elements representing a section’s heading. In this example, I am using multiple headers tag in a single web page. Q.6: Can we insert multiple in web page?Īns: Yes, we can insert multiple in web page. It shows all the possible content we can put into a footer. In above example of footer in a web page. We can also have several elements in one document. The tag defines a footer for a document or section.Ī element should contain information about its containing element. The tag defines sections in a document, such as chapters, headers, footers, or any other sections of the document.Įxample of section tag.
This example shows how to use article tag in a web page. The tag specifies independent and self-contained content.Īn article should make sense on its own and it should be possible to distribute it independently from the rest of the site. This example shows how to use header tag in a web page. We can also have several elements in one document The element represents a container for introductory content or a set of navigational links. Q.5: Please describe following HTML5 elements: For example, an HTML 4.01 document would use the tag as follows: This is a slightly simpler syntax from older HTML standards, which did not have the charset attribute. Q.4: How do we indicate the character set being used by an HTML5 document? How it’s differ from HTML standards?Īns: In HTML5, the encoding can be indicated with the charset attribute of a tag inside the document’s element:
It aims to be more of an application development platform, which includes not only laying out text and images, but also playing video and audio, interactive 2d and 3d graphics, storing data in the application, dealing with online and offline access to data, and real-time networking protocols for exchanging data as it happens. HTML5 strives to be something very different.
Q.3: Explain difference between application model of HTML5 and HTML?Īns: HTML 1.0 – 4.0 (and XHTML) were all specifications for laying out text and images on a page. This comes inbuilt with HTML5 placeholder text attribute of input type.
Placeholder Text: It creates a watermark text for our input text box and ended up writing JavaScript code to handle it. These new addition to the input type are going to make the life of developers a lot more simple Input Types: HTML5 comes with more input types such as search, email, range, color, telephone(tel), and url to name some. It is a best feature to improve the user experience by offering user expected information. Geo Location: With this we can trace the location of the user so that website owners can provide geography based information to their users. Offline Mode: This great feature allows users to create web site that can work even in offline mode.
Web Worker: This feature provides the browser to run JavaScript in background so it can be used to boost the performance of HTML applications. It remains on the local computer and can be loaded using JavaScript once the page is loaded. Also unlike cookies it is not send to server every time the request is made. Local Storage: This is very much similar to JavaScript Cookies, but this is designed to accommodate large amount of information. Advanced video galleries and video players can be designed using JavaScript and HTML5. Video: Now we can put video on our web pages using HTML5. Now one can achieve great graphics and visual images on the fly using element and JavaScript. Q.2: Explain key features of HTML5?Īns: HTML5 offers so many new and advanced features to web designers and UI developers.Ĭanvas: This is the new feature of HTML5. One of the key goals for HTML5 is to support for multimedia on mobile devices. It also aims to define the processes for dealing with syntax errors, so that invalid code will be handled the same by all web browsers.
Major goals of HTML5 are making HTML code easier to read and staying update with the latest multimedia formats. Q.1: Please Explain Key Goals and Uses of HTML5?Īns: HTML5 is the newest version of HTML.