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 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 is used for input fields that should contain an e-mail address in Web Form 2.0?

A - email

B - url

C - number

D - range

Answer : A

Explanation

'email' input control is used for input fields that should contain an e-mail address.

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 specifies if the user can edit the element's content or not?

A - editable

B - contenteditable

C - contextmenu

D - content

Answer : B

Explanation

contenteditable − Specifies if the user can edit the element's content or not.

Q 8 - Which of the following attribute triggers event when the window loses focus?

A - onbeforeload

B - onblur

C - onlostfocus

D - lostfocus

Answer : B

Explanation

onblur − Triggers event when the window loses focus.

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 events when a form gets user input?

A - onchange

B - onedit

C - onformchange

D - onforminput

Answer : D

Explanation

onforminput − Triggers events when a form gets user input.


html5_questions_answers.htm

Advertisements