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.

Questions and Answers

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

A - Mozilla Firefox

B - Opera

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 represents a section of the document intended for navigation in HTML5?

A - footer

B - nav

C - section

D - dialog

Answer : B

Explanation

'nav' tag represents a section of the document intended for navigation.

Q 3 - Which of the following input control is used for input fields that should contain a value from a range of numbers in Web Form 2.0?

A - week

B - time

C - number

D - range

Answer : D

Explanation

'range' input control is used for input fields that should contain a value from a range of numbers.

Q 4 - Which of the following input control is used for input fields that should contain an URL address in Web Form 2.0?

A - email

B - url

C - number

D - range

Answer : B

Explanation

'url' input control is used for input fields that should contain an URL address.

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 triggers an abort event?

A - offline

B - onabort

C - abort

D - onbeforeonload

Answer : B

Explanation

onabort − Triggers an abort event.

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 document comes online?

A - onloadedmetadata

B - onloadstart

C - onmessage

D - ononline

Answer : D

Explanation

ononline − Triggers event when the document comes online.

html5_questions_answers.htm
Advertisements