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 feature is a part of HTML 5?

A - Persistent Local Storage

B - WebSocket

C - Server-Sent Events

D - All of the above.

Answer : D

Explanation

All of the above options are new features introduced in HTML5.

Q 3 - Which of the following input control represents a date and time (year, month, day, hour, minute, second, fractions of a second) encoded according to ISO 8601 with no time zone information in Web Form 2.0?

A - datetime

B - datetime-local

C - date

D - month

Answer : B

Explanation

'datetime-local' input control represents a date and time (year, month, day, hour, minute, second, fractions of a second) encoded according to ISO 8601 with no time zone information.

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 7 - Which of the following attribute specifies whether or not a user is allowed to drag an element?

A - drag

B - content

C - context

D - draggable

Answer : D

Explanation

draggable - Specifies whether or not a user is allowed to drag an element.

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 an element leaves a valid drop target?

A - ondrag

B - ondragleave

C - ondragover

D - ondragstart

Answer : B

Explanation

ondragleave − Triggers event when an element leaves a valid drop target.

Q 10 - Which of the following attribute triggers event when an element gets user input?

A - onhaschange

B - oninput

C - ondata

D - onloadeddata

Answer : B

Explanation

oninput − Triggers event when an element gets user input.

html5_questions_answers.htm
Advertisements