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 - Are HTML tags case sensitive?

A - true

B - false

Answer : B

Explanation

No! HTML tags are not case sensitive.

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 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 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 6 - Which of the following method returns a geolocation object in HTML5?

A - navigator.geolocation

B - browser.geolocation

C - API.geolocation

D - None of the above.

Answer : A

Explanation

navigator.geolocation returns geolocation object.

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 media can be played to the end, without stopping for buffering?

A - onbeforeplay

B - onplay

C - oncanplay

D - oncanplaythrough

Answer : D

Explanation

oncanplaythrough − Triggers event when media can be played to the end, without stopping for buffering.

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 goes offline?

A - onloadedmetadata

B - onloadstart

C - onmessage

D - onoffline

Answer : D

Explanation

onoffline − Triggers event when the document goes offline.

html5_questions_answers.htm
Advertisements