50 TOP Latest HTML5 Interview Questions and Answers for freshers and Experienced pdf free download

1. What are the new features provided in HTML5?
Some of the new features provided in HTML5 are:
•It provides support for local storage
•New form controls, like calendar, date, time, email, url, search
•<canvas> element is provided to facilitate 2D drawing
•The <video> and <audio> elements are provided for media playback
•New content-specific elements are provided. For e.g. <article>, <header>, <footer>, <nav>, <section>

2. Tell us something about the new <canvas> element.
- The new <canvas> element provided by HTML 5 aids in 2D drawing.
- It uses the tag <canvas>.
- This tag helps in drawing graphics through scripting usually JavaScript.

3. What are the various elements provided by HTML 5 for media content?
<audio> and <video> elements are provided by HTML5 for media playback.
The tags used are:
a.) <audio> - It defines sound content.
b.) <video> - It defines a video or a movie.
c.) <source> - This tag defines the multiple media resources for <video> and <audio>.
d.) <embed> - It provides a container for an external application or interactive content.
e.) <track> - It defines text tracks for <video> and <audio>.

4. What are the new Form elements made available in HTML5?
The new Form elements in HTML5 provide for a better functionality. The tags provided to carry out these functions are:
a.) <datalist> - It specifies a list of options for input controls. These options are pre-defined.
b.) <keygen> - This tag defines a key-pair generator field.
c.) <output> - It defines the result of a calculation.

5. What are the various tags provided for better structuring in HTML5?
The various tags provided for better structuring in HTML 5 are:
a.) <article> - This tag defines an article.
b.) <aside> - It defines content other than the page content.
c.) <bdi> - This tag isolates a part of text for formatting in a different direction from other text.
d.) <command> - It defines a command button to be invoked by the user.
e.) <details> - It defines additional details that can be viewed or hidden by the user.
f.) <dialog> - It defines a dialog box.
g.) <figure> - This tag specifies content like illustrations, diagrams, photos, code listings, etc.
h.) <figcaption> - It is used to provide a caption for a <figure> element
i.) <footer> - This tag defines a footer for a document or section
j.) <header> - This tag is used to define a header for a document or section
k.) <hgroup> - When there are multiple levels in a heading, it groups a set of <h1> to <h6> elements.
l.) <mark> - It defines highlighted text.
m.)<meter> - It defines a scalar measurement within a known range.
n.) <nav> - It defines links for navigation
o.) <progress> - This tag exhibits the progress of a task
p.) <ruby> - It defines a ruby annotation for East Asian typography
q.) <rt> - It defines an explanation/pronunciation of characters for East Asian typography
r.) <rp> - This tag tells the system what to display in browsers that do not support ruby annotations.
s.) <section> - It defines a section in a document
t.) <summary> - It provides a visible heading for a <details> element
u.) <time> - This tag defines a date/time
v.) <wbr> - This tag defines a line-break

6. Which elements of HTML 4.01 are no more a part of HTML5?
Following elements of HTML 4.01 are no more a part of HTML 5:
<acronym>
<applet>
<basefont>
<big>
<center>
<dir>
<font>
<frame>
<frameset>
<noframes>
<strike>
<tt>

7. What is SVG?
•SVG is the abbreviation for Scalable Vector Graphics and is recommended by W3C.
•It is used to define vector-based graphics for the Web
•The graphics are defined in XML format
•An important quality of SVG graphics is that their quality is maintained even when they are zoomed or resized.
•All the element and attributes of SVG files can be animated

8. What are the advantages of SVG over other image format like JPEG or GIF?
Following are the main advantages of using SVG over other image formats:
- It is possible to scale the SVG images.
- They can be created and edited with any text editor
- The print quality of these image is high at any resolution.
- It is possible to zoom the SVG images without any degradation in the quality.
- SVG images can be searched, indexed, scripted, and compressed

9. Differentiate between Canvas and SVG.
The table below shows some important differences between Canvas and SVG:
- Canvas is resolution dependent while SVG is not.
- Canvas does not provide any support for event handlers while SVG does.
- Canvas is suitable for graphic-intensive games while SVG is not suitable for gaming.
- Canvas is suitable for small rendering areas while SVG is suitable for large rendering areas like Google maps.

10. What is a Canvas? What is the default border size of a canvas?
Canvas is a rectangular area on a HTML page, specified with the tag <canvas>.
By default, a canvas has no border. To get a border on the canvas, a style attribute is required to be used.

Read More Questions:
HTML5 Interview Questions Part1
HTML5 Interview Questions Part2
HTML5 Interview Questions Part3
HTML5 Interview Questions Part4
HTML5 Interview Questions Part5

1 comment:

  1. Thanks to Admin for Sharing such useful Information. I really like your Blog. Addition to your Story here I am Contributing 1 more Similar Story UI Developer Interview Questions for Experienced Professionals.

    ReplyDelete