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.

41. The __________ attribute sets the text direction as related to the lang attribute.

A. lang

B. sub

C. dir

D. ds

Answer: C

42. Which of the following is the attribute that specifies the column name from the data source object that supplies the bound data?

A. dataFormatAs

B. datafld

C. disabled

D. datasrc

Answer: B

43. Which of the following is the attribute that indicates the name of the data source object that supplies the data that is bound to this element?

A. dataFormatAs

B. datafld

C. disabled

D. datasrc

Answer: D

44. Which of the following is the attribute that specifies additional horizontal space, in pixels, to be reserved on either side of an embedded item like an iframe, applet, image, and so on?

A. height

B. hspace

C. hidefocus

D. datasrc

Answer: B

45. The accesskey attribute specifies a keyboard navigation accelerator for the element.

A. TRUE

B. FALSE

C. Nothing Can be Said

D. None of the mentioned

Answer: A

46. Which of the following is the attribute that is used to set a global identifier for a microdata item?

A. key

B. id

C. itemclass

D. itemid

Answer: D

47. Which of the following is the attribute that is used to add a name/value pair to a microdata item?

A. itemscope

B. itemref

C. itemprop

D. itemid

Answer: C

48. What does wrap attribute denote?

A. Whether the text is in bold

B. Whether the text is wrapped

C. Whether the text is in italics

D. Whether the text is highlighted

Answer: B

49. With which element width attribute is not define?

A. <input>

B. <object>

C. <embed>

D. <textarea>

Answer: D

50. How title attribute works?

A. Displays text when hovering over the element

B. Focus text when hovering over the element

C. Highlight text when hovering over the element

D. Zoom in and zoom out text when hovering over the element

Answer: A