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 browser supports HTML5 in its latest version?

A - Apple Safari

B - Google Chrome

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 the header of a section in HTML5?

A - section

B - article

C - aside

D - header

Answer : D

Explanation

'header' tag represents the header 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 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 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 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 when an element has been dragged to a valid drop target?

A - ondragleave

B - ondrag

C - ondragend

D - ondragenter

Answer : D

Explanation

ondragenter − Triggers event when an element has been dragged to a valid drop target.

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 the message is triggered?

A - onloadedmetadata

B - onloadstart

C - onmessage

D - onoffline

Answer : C

Explanation

onmessage − Triggers event when the message is triggered.


html5_questions_answers.htm

Advertisements