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 tag represents an independent piece of content of a document in HTML5?

A - section

B - article

C - aside

D - header

Answer : B

Explanation

'article' tag represents an independent piece of content of a document, such as a blog entry or newspaper article.

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 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 - Can you use MathML tags directly in HTML5 without any plugin?

A - true

B - false

Answer : A

Explanation

Yes! The HTML syntax of HTML5 allows for MathML elements to be used inside a document using <math>...</math> tags.

Q 5 - Which value of Socket.readyState atribute of WebSocket indicates that the connection is established and communication is possible?

A - 0

B - 1

C - 2

D - 3

Answer : B

Explanation

A value of 1 indicates that the connection is established and communication is possible.

Q 7 - Which of the following attribute is used to group items?

A - item

B - itemprop

C - itemcheck

D - itemgroup

Answer : B

Explanation

itemprop − Used to group items.

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 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 events when the document has change?

A - onhaschange

B - oninput

C - onchange

D - onloadeddata

Answer : A

Explanation

onhaschange − Triggers events when the document has change.

html5_questions_answers.htm
Advertisements