Home
MCQs
HTML MCQs
Attributes MCQs
HTML MCQs

HTML MCQs - Attributes MCQs

Attributes MCQs page consists of attribute and its values, valid value for attribute, favicon attribute, meta attribute, boolean attribute, data source object attribute.

21. Which is not the attribute of <meta> element?

A. description

B. keywords

C. robots

D. seamless

Answer: D

22. The interactive element audio with the attribute controls must not appear as a descendant of which element?

A. "a"

B. "button"

C. "audio"

D. "both a and button"

Answer: D

23. Which type attribute of input element sets the element’s value to a string representing a number?

A. range

B. email

C. file

D. date

Answer: A

24. Which of the following is not the attribute for <audio> element?

A. controls

B. src

C. preload

D. width

Answer: D

25. Which of the following is not a Boolean attribute for <audio> element?

A. autoplay

B. loop

C. muted

D. buffered

Answer: D

26. What is the default type of ‘type’ attribute of <input> element?

A. Text

B. Password

C. Numerals

D. Special Characters

Answer: A

27. Which of the following is a new input attribute introduce by HTML5?

A. text

B. checkbox controls

C. submit buttons

D. date

Answer: D

28. How does the color attribute work?

A. Changes color of the text

B. Changes background color

C. The color picker is defined by it

D. Changes color of the text as well as background

Answer: C

29. Which attribute is used for activation of JavaScript?

A. button

B. checkbox

C. url

D. submit

Answer: A

30. Which attribute defines the file-select field?

A. file

B. checkbox

C. button

D. text

Answer: A