HTML5 Online Quiz


Advertisements


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.

Questions and Answers

Q 1 - Which of the following browser supports HTML5 in its latest version?

A - Apple Safari

B - Google Chrome

C - Both of the above.

D - None of the above.

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?

A - footer

B - nav

C - dialog

D - figure

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 is used for input fields that should contain an e-mail address in Web Form 2.0?

A - email

B - url

C - number

D - range

Answer : A

Explanation

'email' input control is used for input fields that should contain an e-mail address.

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

C - Content-Type: text/data-stream

D - None of the above.

Answer : A

Explanation

Server side script should send Content-type header specifying the type text/event-stream.

Q 6 - Which of the following method returns a geolocation object in HTML5?

A - navigator.geolocation

B - browser.geolocation

C - API.geolocation

D - None of the above.

Answer : A

Explanation

navigator.geolocation returns geolocation object.

Q 7 - Which of the following attribute is used to group elements?

A - item

B - itemprop

C - itemcheck

D - itemgroup

Answer : A

Explanation

item − Used to group elements.

Q 8 - Which of the following attribute triggers event when an element has been dragged to a valid drop target?

A - ondragleave

B - ondrag

C - ondragend

D - ondragenter

Answer : D

Explanation

ondragenter − Triggers event when an element has been dragged to a valid drop target.

Q 9 - Which of the following attribute triggers event when an element leaves a valid drop target?

A - ondrag

B - ondragleave

C - ondragover

D - ondragstart

Answer : B

Explanation

ondragleave − Triggers event when an element leaves a valid drop target.

Q 10 - Which of the following attribute triggers event when the duration and other media data of a media element is loaded?

A - onloadedmetadata

B - onloadstart

C - onmessage

D - onoffline

Answer : A

Explanation

onloadedmetadata − Triggers event when the duration and other media data of a media element is loaded.


html5_questions_answers.htm


Advertisements
E-Books Store