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 2 - Which of the following tag can be used to mark up a conversation in HTML5?

A - footer

B - nav

C - dialog

D - figure

Answer : C

Explanation

'dialog' tag can be used to mark up a conversation.

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 the time zone set to UTC in Web Form 2.0?

A - datetime

B - datetime-local

C - date

D - month

Answer : A

Explanation

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

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 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 an element is being dragged over a valid drop target?

A - ondragleave

B - ondrag

C - ondragover

D - ondragstart

Answer : C

Explanation

ondragover − Triggers event when an element is being dragged over a valid drop target.

Q 10 - Which of the following attribute triggers event when media data is loaded?

A - onhaschange

B - oninput

C - onload

D - onloadeddata

Answer : D

Explanation

onloadeddata − Triggers event when media data is loaded.

html5_questions_answers.htm
Advertisements