Home Interview Questions and AnswersTechnical Interview Questions and AnswersHTML5 HTML5 Interview Questions and Answers For Freshers Part-1

html51.What is HTML5?
HTML5 is the next major revision of the HTML standard superseding HTML 4.01, XHTML 1.0, and XHTML 1.1. HTML5 is a standard for structuring and presenting content on the World Wide Web.

2.Name some of the new features of HTML5.
HTML5 introduces a number of new elements and attributes that helps in building a modern websites. Following are great features introduced in HTML5 −

New Semantic Elements − These are like <header>, <footer>, and <section>.

Forms 2.0 − Improvements to HTML web forms where new attributes have been introduced for <input> tag.

Persistent Local Storage − To achieve without resorting to third-party plugins.

WebSocket − A a next-generation bidirectional communication technology for web applications.

Server-Sent Events − HTML5 introduces events which flow from web server to the web browsers and they are called Server-Sent Events (SSE).

Canvas − This supports a two-dimensional drawing surface that you can program with JavaScript.

Audio & Video − You can embed audio or video on your web pages without resorting to third-party plugins.

Geolocation − Now visitors can choose to share their physical location with your web application.

Microdata − This lets you create your own vocabularies beyond HTML5 and extend your web pages with custom semantics.

Drag and drop − Drag and drop the items from one location to another location on a the same webpage.

3.Which browsers support HTML5?
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.

4.Is HTML5 backward compatible with old browsers?
Yes! HTML5 is designed, as much as possible, to be backward compatible with existing web browsers. New features build on existing features and allow you to provide fallback content for older browsers.

It is suggested to detect support for individual HTML5 features using a few lines of JavaScript.

5.Are HTML tags case sensitive?
No!

6.What is the purpose of ‘section’ tag in HTML5?
This tag represents a generic document or application section. It can be used together with h1-h6 to indicate the document structure.

7.is the purpose of ‘article’ tag in HTML5?
This tag represents an independent piece of content of a document, such as a blog entry or newspaper article.

8.What is the purpose of ‘aside’ tag in HTML5?
This tag represents a piece of content that is only slightly related to the rest of the page.

9.What is the purpose of ‘header’ tag in HTML5?
This tag represents the header of a section.

10.What is the purpose of ‘footer’ tag in HTML5?
This tag represents a footer for a section and can contain information about the author, copyright information, et cetera.

You may also like

Leave a Comment