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 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 4 - Which of the following tag provides a hint to the user of what can be entered in the field in HTML5?

A - output

B - placeholder

C - autofocus

D - required

Answer : B

Explanation

HTML5 introduced a new attribute called placeholder. This attribute on <input> and <textarea> elements provides a hint to the user of what can be entered in the field. The placeholder text must not contain carriage returns or line-feeds.

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 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 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 at the end of a drag operation?

A - ondragleave

B - ondrag

C - ondragend

D - ondragenter

Answer : C

Explanation

ondragend − Triggers event at the end of a drag operation.

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 the document comes online?

A - onloadedmetadata

B - onloadstart

C - onmessage

D - ononline

Answer : D

Explanation

ononline − Triggers event when the document comes online.

html5_questions_answers.htm
Advertisements