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 3 - Which of the following input control accepts only numerical value in Web Form 2.0?

A - week

B - time

C - number

D - range

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 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 7 - Which of the following attribute specifies whether or not a user is allowed to drag an element?

A - drag

B - content

C - context

D - draggable

Answer : D

Explanation

draggable - Specifies whether or not a user is allowed to drag an element.

Q 8 - Which of the following attribute triggers event when an element is dragged?

A - ondragleave

B - ondrag

C - ondragend

D - ondragenter

Answer : B

Explanation

ondrag − Triggers event when an element is dragged.

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 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