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 - 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 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 represents a date consisting of a year and a week number encoded according to ISO 8601 in Web Form 2.0?

A - week

B - time

C - number

D - range

Answer : A

Explanation

'week' input control represents a date consisting of a year and a week number encoded according to ISO 8601.

Q 4 - Which of the following tag is used to represent the result of different types of output in HTML5?

A - output

B - placeholder

C - autofocus

D - required

Answer : A

Explanation

HTML5 introduced a new element <output> which is used to represent the result of different types of output, such as output written by a script.

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 if the element must have it's spelling or grammar checked?

A - item

B - itemcheck

C - spellcheck

D - itemgroup

Answer : C

Explanation

spellcheck − Specifies if the element must have it's spelling or grammar checked.

Q 8 - Which of the following attribute triggers event when an element is dragged?

A - ondragleave

B - ondrag

C - ondragend

D - ondragenter

Answer : B

Explanation

ondrag − Triggers event when an element is dragged.

Q 9 - Which of the following attribute triggers event when media has reach the end?

A - ondrop

B - ondurationchange

C - onemptied

D - onended

Answer : D

Explanation

onended − Triggers event when media has reach the end.

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