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.

1. Choose the correct HTML for width attribute and its value.

A. width=80

B. width="80"

C. WIDTH="80"

D. WIDTH=80

Answer: B

2. Different meta tags are defined by changing the __________ attribute to a valid value.

A. scheme

B. content

C. http-equiv

D. name

Answer: D

3. The value of the ___________ attribute refers to the time interval in seconds before the refresh is performed.

A. scheme

B. content

C. http-equiv

D. name

Answer: B

4. Every HTML element may have an ____________ attribute specified.

A. itemtype

B. relevant types

C. itemscope

D. itemref

Answer: C

5. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a meta element?

A. The value is the item created by the element

B. The value is the value of the element’s value attribute, if it has one, or the empty string otherwise

C. On getting, if the element has a datetime content attribute, the IDL attribute must return that content attribute’s value

D. The value is the element’s textContent

Answer: B

6. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a time element?

A. The value is the element’s datetime value

B. The value is the value of the element’s content attribute, if any, or the empty string if there is no such attribute

C. The value is the value of the element’s value attribute, if it has one, or the empty string otherwise

D. The value is the element’s textContent

Answer: A

7. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a data element?

A. The value is the value of the element’s value attribute if it has one, or the empty string otherwise

B. The value is the item created by the element

C. The value is the element’s datetime value

D. The value is item’s scope

Answer: A

8. Which attribute is used for favicon?

A. icon

B. title

C. rel

D. head

Answer: C

9. The root element of an XHTML document must be html, and must contain an __________ attribute to associate it with the XHTML namespace.

A. source

B. src

C. xmlns

D. link

Answer: C

10. Which of the following attribute is used to display date/time content?

A. time

B. datetime

C. date

D. year

Answer: B