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 - 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 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 been closed or could not be opened?

A - 0

B - 1

C - 2

D - 3

Answer : D

Explanation

A value of 3 indicates that the connection has been closed or could not be opened.

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 triggers an abort event?

A - offline

B - onabort

C - abort

D - onbeforeonload

Answer : B

Explanation

onabort − Triggers an abort event.

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 event when the length of the media is changed?

A - ondrop

B - ondurationchange

C - onemptied

D - onended

Answer : B

Explanation

ondurationchange − Triggers event when the length of the media is changed.

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