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 - Is HTML5 backward compatible with old browsers?

A - true

B - false

Answer : A

Explanation

Yes! HTML5 is designed, as much as possible, to be backward compatible with existing web browsers.

Q 2 - Which of the following tag represents the footer of a section in HTML5?

A - footer

B - nav

C - section

D - dialog

Answer : A

Explanation

'footer' tag represents the footer of a section.

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 value of Socket.readyState atribute of WebSocket indicates that the connection has not yet been established?

A - 0

B - 1

C - 2

D - 3

Answer : A

Explanation

A value of 0 indicates that the connection has not yet been established.

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 when media can start play, but might has to stop for buffering?

A - onbeforeplay

B - onplay

C - oncanplay

D - oncanplaythrough

Answer : C

Explanation

oncanplay − Triggers event when media can start play, but might has to stop for buffering.

Q 9 - Which of the following attribute triggers events when a form changes?

A - onchange

B - onedit

C - onformchange

D - onforminput

Answer : C

Explanation

onformchange − Triggers events when a form changes.

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