Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

HTML5 Interview Questions and Answers For Freshers Part-2

Be First!

html511.What is the purpose of ‘nav’ tag in HTML5?
This tag represents a section of the document intended for navigation.

12.What is the purpose of ‘dialog’ tag in HTML5?
This tag can be used to mark up a conversation.

13.What is the purpose of ‘figure’ tag in HTML5?
This tag can be used to associate a caption together with some embedded content, such as a graphic or video.

14.What are custom attributes in HTML5?
A custom data attribute starts with data- and would be named based on your requirement. Following is the simple example−

<div class=”example” data-subject=”physics” data-level=”complex”>

</div>
The above will be perfectly valid HTML5 with two custom attributes called data-subject and data-level. You would be able to get the values of these attributes using JavaScript APIs or CSS in similar way as you get for standard attributes.

15.What is Web Forms 2.0?
Web Forms 2.0 is an extension to the forms features found in HTML4. Form elements and attributes in HTML5 provide a greater degree of semantic mark-up than HTML4 and remove a great deal of the need for tedious scripting and styling that was required in HTML4.

16.What is the purpose of datetime input control in Web form 2.0?
It represents a date and time (year, month, day, hour, minute, second, fractions of a second) encoded according to ISO 8601 with the time zone set to UTC.

17.What is the purpose of datetime-local input control in Web form 2.0?
It represents a date and time (year, month, day, hour, minute, second, fractions of a second) encoded according to ISO 8601 with no time zone information.

18.What is the purpose of date input control in Web form 2.0?
It represents a date (year, month, day) encoded according to ISO 8601.

19.What is the purpose of month input control in Web form 2.0?
It represents a date consisting of a year and a month encoded according to ISO 8601.

20.What is the purpose of week input control in Web form 2.0?
It represents a date consisting of a year and a week number encoded according to ISO 8601.

(194)

Previous
Next

Leave a Reply