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 2 - Which of the following tag represents a section of the document intended for navigation in HTML5?

A - footer

B - nav

C - section

D - dialog

Answer : B

Explanation

'nav' tag represents a section of the document intended for navigation.

Q 3 - Which of the following input control represents a time (hour, minute, seconds, fractional seconds) encoded according to ISO 8601 in Web Form 2.0?

A - week

B - time

C - number

D - range

Answer : B

Explanation

'time' input control represents a time (hour, minute, seconds, fractional seconds) encoded according to ISO 8601.

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 triggers event when the document goes offline?

A - offline

B - off

C - out

D - onbeforeonload

Answer : A

Explanation

offline − Triggers event when the document goes offline.

Q 8 - Which of the following attribute triggers event when media can be played to the end, without stopping for buffering?

A - onbeforeplay

B - onplay

C - oncanplay

D - oncanplaythrough

Answer : D

Explanation

oncanplaythrough − Triggers event when media can be played to the end, without stopping for buffering.

Q 9 - Which of the following attribute triggers event when a media resource element suddenly becomes empty?

A - ondrop

B - ondurationchange

C - onemptied

D - onended

Answer : C

Explanation

onemptied − Triggers event when a media resource element suddenly becomes empty.

Q 10 - Which of the following attribute triggers event when an element is invalid?

A - onhaschange

B - oninput

C - oninvalid

D - onvalidate

Answer : C

Explanation

oninvalid − Triggers event when an element is invalid.

html5_questions_answers.htm
Advertisements