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 feature is a part of HTML 5?

A - Canvas

B - Audio & Video

C - Geolocation

D - All of the above.

Answer : D

Explanation

All of the above options are new features introduced in 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 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 5 - Which value of Socket.readyState atribute of WebSocket indicates that the connection is going through the closing handshake?

A - 0

B - 1

C - 2

D - 3

Answer : C

Explanation

A value of 2 indicates that the connection is going through the closing handshake.

Q 6 - Which of the following method retrieves the current geographic location of the user?

A - geolocation.getCurrentPosition()

B - geolocation.watchPosition()

C - geolocation.clearPosition()

D - None of the above.

Answer : A

Explanation

geolocation.getCurrentPosition() method retrieves the current geographic location of the user.

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 when the window loses focus?

A - onbeforeload

B - onblur

C - onlostfocus

D - lostfocus

Answer : B

Explanation

onblur − Triggers event when the window loses focus.

Q 9 - Which of the following attribute triggers event at the start of a drag operation?

A - ondragleave

B - ondrag

C - ondragover

D - ondragstart

Answer : D

Explanation

ondragstart − Triggers event at the start of a drag operation.

Q 10 - Which of the following attribute triggers event when an element gets user input?

A - onhaschange

B - oninput

C - ondata

D - onloadeddata

Answer : B

Explanation

oninput − Triggers event when an element gets user input.

html5_questions_answers.htm
Advertisements