Google News
logo
HTML5 Interview Questions
HTML5 (No space between "HTML" and "5")is a markup language used for structuring and presenting content on the World Wide Web. It was published in 28 October 2014, W3C also published an HTML 5.1 Candidate Recommendation on 21 June 2016.

The latest versions of Apple Safari, Google Chrome, Mozilla Firefox, and Opera all support many HTML5 features and Internet Explorer 9.0 will also have support for some HTML5 functionality.

The mobile web browsers that come pre-installed on iPhones, iPads, and Android phones all have excellent support for HTML5.

HTML5 provides following audio tags :

<audio>   - Defines sound content
<video>   - Defines video content
<source> - Defines multiple media resources for media elements, such as <video> and <audio> 

This tag represents a piece of self-contained flow content. It is mostly used as a single unit as a reference the main flow of the document.

The new Form elements in HTML5 offers much better functionality than the earlier versions.

The tags given provided to carry out these functions are :

1) <datalist> – This tag is use to specify a list of options for input controls.

2) <keygen> – This tag represents a key-pair generator field.

3) <output> – It represents the result of any scripting calculation.

Following are the important, new data types offered by HTML5 :

  1. date : It allows the user to select a date.
  2. datetime-local : This input type allows the user to select a date and time without time zone.
  3. datetime : This input type allows the user to select a date and time with time zone.
  4. month : It allows the user to select a month and year
  5. email : These input fields used to contain an e-mail address.

Some drawbacks in cookies there are following  :

  • Cookies are included with every HTTP request, thereby slowing down your web application by transmitting the same data.

  • 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.

The Web Hypertext Application Technology Working Group (WHATWG) is a community of people interested in evolving HTML and related technologies. TheWHATWG was founded by individuals from Apple, the Mozilla Foundation and Opera Software in 2004.

The DOM is a W3C (World Wide Web Consortium) standard. The DOM defines a standard for accessing documents: "The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."

Along with HTML5, WHATWG Web Applications 1.0 introduces events which flow from web server to the web browsers and they are called Server-Sent Events (SSE). Using SSE you can push DOM (Document Object Model) events continuously from your web server to the visitor's browser.

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.