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 - 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 can be used to mark up a conversation in HTML5?

A - footer

B - nav

C - dialog

D - figure

Answer : C

Explanation

'dialog' tag can be used to mark up a conversation.

Q 4 - Which of the following tag automatically focus one particular form field in HTML5?

A - output

B - placeholder

C - autofocus

D - required

Answer : C

Explanation

This is a simple one-step pattern, easily programmed in JavaScript at the time of document load, automatically focus one particular form field.

Q 6 - Which of the following method cancels an ongoing watchPosition call?

A - geolocation.getCurrentPosition()

B - geolocation.watchPosition()

C - geolocation.clearPosition()

D - None of the above.

Answer : C

Explanation

geolocation.clearPosition() method cancels an ongoing watchPosition call.

Q 7 - Which of the following attribute specifies a keyboard shortcut to access an element in HTML5?

A - accesskey

B - key

C - contextmenu

D - contextkey

Answer : A

Explanation

accesskey - Specifies a keyboard shortcut to access an element.

Q 8 - Which of the following attribute triggers event after the document is printed?

A - offlineprint

B - onprint

C - onafterprint

D - onbeforeprint

Answer : C

Explanation

onafterprint − Triggers event after the document is printed.

Q 9 - Which of the following attribute triggers event when an element is being dragged over a valid drop target?

A - ondragleave

B - ondrag

C - ondragover

D - ondragstart

Answer : C

Explanation

ondragover − Triggers event when an element is being dragged over a valid drop target.

Q 10 - Which of the following attribute triggers events when the document has change?

A - onhaschange

B - oninput

C - onchange

D - onloadeddata

Answer : A

Explanation

onhaschange − Triggers events when the document has change.

html5_questions_answers.htm
Advertisements