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 can be used to associate a caption together with some embedded content in HTML5?
Answer : D
Explanation
'figure' tag can be used to associate a caption together with some embedded content, such as a graphic or video.
Q 3 - Which of the following input control accepts only numerical value in Web Form 2.0?
Answer : C
Explanation
'number' input control accepts only numerical value. The step attribute specifies the precision, defaulting to 1.
Q 4 - Which of the following tag insists to have a value in an input control in HTML5?
Answer : D
Explanation
HTML5 introduced a new attribute called required which would insist to have a value in an input control.
Q 5 - Which of the following is correct Content-type header that a server side script should send for SSE in HTML5?
A - Content-Type: text/event-stream
B - Content-Type: text/application-stream
Answer : A
Explanation
Server side script should send Content-type header specifying the type text/event-stream.
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 attribute triggers an abort event?
Answer : B
Explanation
onabort − Triggers an abort event.
Q 8 - Which of the following attribute triggers event before the document is printed?
Answer : A
Explanation
onbeforeprint − Triggers event before the document is printed.
Q 9 - Which of the following attribute triggers event when the length of the media is changed?
Answer : B
Explanation
ondurationchange − Triggers event when the length of the media is changed.
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.