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 can be used to associate a caption together with some embedded content in HTML5?

A - footer

B - nav

C - dialog

D - figure

Answer : D

Explanation

'figure' tag can be used to associate a caption together with some embedded content, such as a graphic or video.

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 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 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 specifies if the user can edit the element's content or not?

A - editable

B - contenteditable

C - contextmenu

D - content

Answer : B

Explanation

contenteditable − Specifies if the user can edit the element's content or not.

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

A - onbeforeprint

B - onafterprint

C - onprint

D - beforeprint

Answer : A

Explanation

onbeforeprint − Triggers event before the document is printed.

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 media data is loaded?

A - onhaschange

B - oninput

C - onload

D - onloadeddata

Answer : D

Explanation

onloadeddata − Triggers event when media data is loaded.

html5_questions_answers.htm
Advertisements