
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 tag represents a generic document or application section in HTML5?
Answer : A
Explanation
'section' tag represents a generic document or application section. It can be used together with h1-h6 to indicate the document structure.
Q 2 - Which of the following is correct about custom attributes in HTML5?
A - A custom data attribute starts with data- and would be named based on your requirement.
Answer : C
Explanation
Both of the above options are correct.
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 - 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 is true about 'video' tag in HTML5?
A - HTML5 supports <video> tag which is used to embed a video file in an HTML or XHTML document.
C - Ogg files with Thedora video codec and Vorbis audio codec are supported.
Answer : D
Explanation
All of the above options are correct.
Q 7 - Which of the following attribute is used to group elements?
Answer : A
Explanation
item − Used to group elements.
Q 8 - Which of the following attribute triggers event when media can start play, but might has to stop for buffering?
Answer : C
Explanation
oncanplay − Triggers event when media can start play, but might has to stop for buffering.
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.