HTML5 Online Quiz


Advertisements


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 section of the document intended for navigation in HTML5?

A - footer

B - nav

C - section

D - dialog

Answer : B

Explanation

'nav' tag represents a section of the document intended for navigation.

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 5 - Which value of Socket.readyState atribute of WebSocket indicates that the connection is going through the closing handshake?

A - 0

B - 1

C - 2

D - 3

Answer : C

Explanation

A value of 2 indicates that the connection is going through the closing handshake.

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

A - item

B - itemprop

C - itemcheck

D - itemgroup

Answer : A

Explanation

item − Used to group elements.

Q 8 - Which of the following attribute triggers event when media can start play, but might has to stop for buffering?

A - onbeforeplay

B - onplay

C - oncanplay

D - oncanplaythrough

Answer : C

Explanation

oncanplay − Triggers event when media can start play, but might has to stop for buffering.

Q 9 - Which of the following attribute triggers event when an error occur?

A - onerror

B - error

C - onformerror

D - onvalidation

Answer : A

Explanation

onerror − Triggers event when an error occur.

Q 10 - Which of the following attribute triggers event when an element gets user input?

A - onhaschange

B - oninput

C - ondata

D - onloadeddata

Answer : B

Explanation

oninput − Triggers event when an element gets user input.


html5_questions_answers.htm

Advertisements