HTML 5 Interview Questions With Answers

What were some of the key goals and motivations for the HTML5 specification?

HTML5 was designed to replace both HTML 4, XHTML, and the HTML DOM Level 2.

Major goals of the HTML specification were to:

Deliver rich content (graphics, movies, etc.) without the need for additional plugins (e.g., Flash).
Provide better semantic support for web page structure through the introduction of new structural element tags.
Provide a stricter parsing standard to simplify error handling, ensure more consistent cross-browser behavior, and simplify backward compatibility with documents written to older standards.
Provide better cross-platform support (i.e., to work well whether running on a PC, Tablet.


What are the new features provided in HTML5?


Some of the new features provided in HTML5 are:

1. It provides support for local storage
2. New form controls, like calendar, date, time, email, url, search
3. <canvas> element is provided to facilitate 2D drawing
4. The <video> and <audio> elements are provided for media playback
5. New content-specific elements are provided. For e.g. <article>, <header>, <footer>, <nav>, <section>


What are the various tags provided for better structuring in HTML5?


The various tags provided for better structuring in HTML 5 are:

1) <article> - This tag defines an article.
2) <aside> - It defines content other than the page content.
3) <bdi> - This tag isolates a part of text for formatting in a different direction from other text.
4) <command> - It defines a command button to be invoked by the user.
5) <details> - It defines additional details that can be viewed or hidden by the user.
6) <dialog> - It defines a dialog box.
7) <figure> - This tag specifies content like illustrations, diagrams, photos, code listings, etc.
8) <figcaption> - It is used to provide a caption for a <figure> element
9) <footer> - This tag defines a footer for a document or section
10) <header> - This tag is used to define a header for a document or section
11) <hgroup> - When there are multiple levels in a heading, it groups a set of <h1> to <h6> elements.

What are the other tags provided for better structuring in HTML5?


1) <mark> - It defines highlighted text.
2) <meter> - It defines a scalar measurement within a known range.
3) <nav> - It defines links for navigation.
4) <progress> - This tag exhibits the progress of a task.
5) <ruby> - It defines a ruby annotation for East Asian typography.
6) <rt> - It defines an explanation/pronunciation of characters for East Asian typography.
7) <rp> - This tag tells the system what to display in browsers that do not support ruby annotations.
8) <section> - It defines a section in a document.
9) <summary> - It provides a visible heading for a <details> element.
10) <time> - This tag defines a date/time.
11) <wbr> - This tag defines a line-break.

If you are fresher then interviewer does not expect you will answer very complex questions, rather you have to make your basics concepts very strong.it really doesn't matter much if you could not answer few questions but it matters that whatever you answered, you must have answered with confidence. If you want to Learn Ui Development Training Contact visualpath. We at Visualpath wish you best luck to have a good interview and all the very best for your future endeavor. Cheers :-)



Comments