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 browser supports HTML5 in its latest version?

A - Mozilla Firefox

B - Opera

C - Both of the above.

D - None of the above.

Answer : C

Explanation

Both of the above browsers supports HTML5.

Q 2 - Which of the following tag represents the footer of a section in HTML5?

A - footer

B - nav

C - section

D - dialog

Answer : A

Explanation

'footer' tag represents the footer of a section.

Q 3 - Which of the following input control represents a date (year, month, day) encoded according to ISO 8601 in Web Form 2.0?

A - datetime

B - datetime-local

C - date

D - month

Answer : C

Explanation

'date' input control represents a date (year, month, day) encoded according to ISO 8601.

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 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 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 event at the start of a drag operation?

A - ondragleave

B - ondrag

C - ondragover

D - ondragstart

Answer : D

Explanation

ondragstart − Triggers event at the start of a drag operation.

Q 10 - Which of the following attribute triggers event when the browser starts to load the media data?

A - onloadedmetadata

B - onloadstart

C - onmessage

D - onoffline

Answer : B

Explanation

onloadstart − Triggers event when the browser starts to load the media data.


html5_questions_answers.htm

Advertisements
E-Books Store