HTML5 Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to HTML5 Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Which of the following browser supports HTML5 in its latest version?
Answer : C
Explanation
Both of the above browsers supports HTML5.
Q 2 - Which of the following tag represents a section of the document intended for navigation in HTML5?
Answer : B
Explanation
'nav' tag represents a section of the document intended for navigation.
Q 3 - Which of the following input control 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 in Web Form 2.0?
Answer : B
Explanation
'datetime-local' input control 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.
Q 4 - Which of the following is true about Session Storage in HTML5?
B - It will be accessible to any page from the same site opened in that window i.e. session.
Answer : D
Explanation
All of the above options are correct.
Q 5 - How to delete a local storage data in HTML5?
B - If you want to clear all settings, you need to call localStorage.clear() method.
Answer : C
Explanation
Both of the above options are valid.
Q 6 - Which of the following method returns a geolocation object in HTML5?
Answer : A
Explanation
navigator.geolocation returns geolocation object.
Q 7 - Which of the following attribute specifies whether or not a user is allowed to drag an element?
Answer : D
Explanation
draggable - Specifies whether or not a user is allowed to drag an element.
Q 8 - Which of the following attribute triggers event when the window loses focus?
Answer : B
Explanation
onblur − Triggers event when the window loses focus.
Q 9 - Which of the following attribute triggers event when an element is being dragged over a valid drop target?
Answer : C
Explanation
ondragover − Triggers event when an element is being dragged over a valid drop target.
Q 10 - Which of the following attribute triggers event when an element gets user input?
Answer : B
Explanation
oninput − Triggers event when an element gets user input.