Get the best Html5 interview questions and answers for Freshers with PDF Free download and HTML5 tricky interview questions only at. Top 60 HTML & HTML5 Interview Questions & Answers 4) What are some of the common lists that can be used when .. Download PDF. Top HTML5 interview questions and answers. Questions: 1. What is the difference between HTML and HTML5? Answers: 1. HTML5 is nothing more then.
|Language:||English, Spanish, Dutch|
|Distribution:||Free* [*Registration Required]|
What is the purpose of url input control in Web form 2. This accepts only URL value. This type is used for input fields that should contain a URL address. What is the purpose of 'output' tag in HTML5? What is the purpose of 'placeholder' attribute in HTML5?
What is the purpose of 'required' attribute in HTML5? HTML5 introduced a new attribute called required which would insist to have a value in an input control.
What are the drawbacks of cookies? Cookies are included with every HTTP request, thereby sending data unencrypted over the internet. Cookies are limited to about 4 KB of data. Not enough to store required data. What do you mean by session storage in HTML5?
HTML5 introduces the sessionStorage attribute which would be used by the sites to add data to the session storage, and it will be accessible to any page from the same site opened in that window i.
What do you mean by local storage in HTML5? HTML5 introduces the localStorage attribute which would be used to access a page's local storage area without no time limit and this local storage will be available whenever you would use that page. When a session storage data gets deleted? The Session Storage Data would be deleted by the browsers immediately after the session gets terminated.
When a local storage data gets deleted? To clear a local storage setting you would need to call localStorage. If you want to clear all settings, you need to call localStorage. The event streaming approach opens a persistent connection to the server, sending data to the client when new information is available, eliminating the need for continuous polling. Server-sent events standardizes how we stream data from the server to the client.
The second attribute, protocol is optional, and if present, specifies a sub-protocol that the server must support for the connection to be successful. What is the purpose of Socket. The readonly attribute readyState represents the state of the connection.
It can have the following values: A value of 0 indicates that the connection has not yet been established. A value of 1 indicates that the connection is established and communication is possible. A value of 2 indicates that the connection is going through the closing handshake. A value of 3 indicates that the connection has been closed or could not be opened. Value of 2 indicates that the connection is going through the closing handshake. Value of 3 indicates that the connection has been closed or could not be opened.
Web Workers do all the computationally expensive tasks without interrupting the user interface and typically run on separate threads.
And allow for long-running scripts that are not interrupted by scripts that respond to clicks or other user interactions.
It provides greater consistency in terms of the HTML used to code a web page It provides both Audio and Video support It helps developers to use fancier forms It provides geolocation support HTML5 is the most mobile-ready tool for developing mobile sites and apps.
It usually requires less maintenance support. It also provides more reliable storage options functionality. It is not necessary for the user to have accessed this content previously, for fetching this content. HTML 4. Created an evolution as the browser support was undertaken by Microsoft in their Internet Explorer IE.
HTML 5. The current version of HTML which was introduced especially to work with any type of devices like mobile, tablets, large monitors etc. When it comes to interviews for web developers, HTML plays a minor role as it is very easy to learn and use. Below are some of the commonly asked interview questions for HTML5 web application:. HTML5 introduced few structural elements to define different parts of a web page like article, header, footer, main, mark and many more.
These are sections in which a web page is usually divided into. It defines space for an article that is independently distributable. For example, A magazine or newspaper article. It can hold another sections or elements in it. It is also possible to hold direct text in it, but not the one that is used. HTML holds 6 types of headings starting from h1 to h6.
The heading one h1 is the maximum font and h6 is the minimum font. A span tag is similar to div section but is used to divide the screen into even smaller sections. Meta tags are the tags that provide more information to our web pages. Some of the tags that are examples for meta are:.
You may also like: The list tags are used to list out any information. There are types in listing out the information using the tags, these are:. Ordered List: Unordered List: Definition List: When the purpose is to provide some HTML elements as a group to the user then, fieldset tag is the best one to use. An input tag can take some attributes based on the requirement. The attribute type can take more values, these are:.
As there is no direct key to type and insert the copyright symbol in a web page, it has to be given by combining different characters. This can be done in multiple ways like:.
It is also used to change the numbering index the value attribute is used. Session Storage: The current session i. Once the user closes the browser, the storage is cleared. Local Storage: Data stored in local storage will not be cleared automatically or when the user closes the browser.
SVG is helpful when using devices like tablets, iPads etc. If disabled or made false, the form data is not validated when submitted. The autocomplete attribute is usually applied to text boxes with which the user can fill the textboxes with the previous values given to it.
Application Cache is a mechanism in which the web applications can also run offline. One of the advantages of using the application cache is that the resources load faster.
This tag is also known as a gauge and is used to define a scalar measurement which is in a known range.
The cite tag is used to represent the title of a work like a book, paper, poem etc. This tag is mostly used as an inline tag. This attribute is a new feature in HTML5 using which any element can be edited directly from the browser. Using Web Workers APIs provide a way to run something in the background with which certain tasks can be performed without distracting the user interface.
MathML stands for Mathematical Markup Language and is used to show mathematical and scientific content on the web page. This expression should be inserted in a math tag. Using Microdata, the metadata is nested within existing content on web pages. Search engines extract the microdata from a web page to provide a good browsing experience. Related reading: Top 55 Java Interview Questions and Answers for