Explore topic-wise MCQs in Html.

This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your Html knowledge and support exam preparation. Choose a topic below to get started.

1.

Which element specifies a list of pre-defined options for an input element?

A. <output>
B. <password>
C. <datalist>
D. <keygen>
E. None of these
Answer» D. <keygen>
2.

week attribute defines ____________.

A. week, month and year
B. week and year
C. week
D. year
E. None of these
Answer» C. week
3.

month attribute defines ___________.

A. month and year
B. date
C. date and time
D. the only month
E. None of these
Answer» B. date
4.

What is the default type of type attribute of element?

A. Password
B. Numerals
C. Text
D. Special Characters
E. None of these
Answer» D. Special Characters
5.

Which of the following defines a group of related options in a drop-down list?

A. <output>
B. <option>
C. <optgroup>
D. <form>
E. None of these
Answer» D. <form>
6.

The __________ attribute effectively renders the iframe as an inline include, which allows the parent document s CSS to affect the contents of the iframe.

A. embed
B. allow-scripts
C. seamless
D. allow-forms
E. None of these
Answer» D. allow-forms