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 a generic document or application section in HTML5?

A - section

B - article

C - aside

D - header

Answer : A

Explanation

'section' tag represents a generic document or application section. It can be used together with h1-h6 to indicate the document structure.

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 - 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 of the following is correct Content-type header that a server side script should send for SSE in HTML5?

A - Content-Type: text/event-stream

B - Content-Type: text/application-stream

C - Content-Type: text/data-stream

D - None of the above.

Answer : A

Explanation

Server side script should send Content-type header specifying the type text/event-stream.

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 after the document is printed?

A - offlineprint

B - onprint

C - onafterprint

D - onbeforeprint

Answer : C

Explanation

onafterprint − Triggers event after the document is printed.

Q 9 - Which of the following attribute triggers event when dragged element is being dropped?

A - ondrop

B - ondurationchange

C - onemptied

D - onended

Answer : A

Explanation

ondrop − Triggers event when dragged element is being dropped.

Q 10 - Which of the following attribute triggers event when an element is invalid?

A - onhaschange

B - oninput

C - oninvalid

D - onvalidate

Answer : C

Explanation

oninvalid − Triggers event when an element is invalid.

html5_questions_answers.htm
Advertisements