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 2 - Which of the following tag represents a piece of content that is only slightly related to the rest of the page in HTML5?

A - section

B - article

C - aside

D - header

Answer : C

Explanation

'aside' tag represents a piece of content that is only slightly related to the rest of the page.

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 automatically focus one particular form field in HTML5?

A - output

B - placeholder

C - autofocus

D - required

Answer : C

Explanation

This is a simple one-step pattern, easily programmed in JavaScript at the time of document load, automatically focus one particular form field.

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 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 the window loses focus?

A - onbeforeload

B - onblur

C - onlostfocus

D - lostfocus

Answer : B

Explanation

onblur − Triggers event when the window loses focus.

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 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