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 piece of content that is only slightly related to the rest of the page in HTML5?
Answer : C
Explanation
'aside' tag represents a piece of content that is only slightly related to the rest of the page.
Q 3 - Which of the following input control represents a date (year, month, day) encoded according to ISO 8601 in Web Form 2.0?
Answer : C
Explanation
'date' input control represents a date (year, month, day) encoded according to ISO 8601.
Q 4 - Which of the following tag provides a hint to the user of what can be entered in the field in HTML5?
Answer : B
Explanation
HTML5 introduced a new attribute called placeholder. This attribute on <input> and <textarea> elements provides a hint to the user of what can be entered in the field. The placeholder text must not contain carriage returns or line-feeds.
Q 5 - When a session storage data gets deleted in HTML5?
B - If you want to clear all settings, you need to call localStorage.clear() method.
Answer : A
Explanation
The Session Storage Data would be deleted by the browsers immediately after the session gets terminated.
Q 6 - Which of the following method retrieves the current geographic location of the user?
A - geolocation.getCurrentPosition()
B - geolocation.watchPosition()
Answer : A
Explanation
geolocation.getCurrentPosition() method retrieves the current geographic location of the user.
Q 7 - Which of the following is correct about web workers in HTML5?
C - Web Workers allow long tasks to be executed without yielding to keep the page responsive.
Answer : D
Explanation
All of the above options are correct.
Q 8 - Which of the following attribute triggers event when an element is dragged?
Answer : B
Explanation
ondrag − Triggers event when an element is dragged.
Q 9 - Which of the following attribute triggers event when dragged element is being dropped?
Answer : A
Explanation
ondrop − Triggers event when dragged element is being dropped.
Q 10 - Which of the following attribute triggers event when the document goes offline?
Answer : D
Explanation
onoffline − Triggers event when the document goes offline.