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.

31. How image attribute works?

A. Sets an image background

B. Set an image as submit button

C. Set an image anywhere on the page

D. Bring default image to the page

Answer: B

32. month attribute defines ___________

A. the only month

B. month and year

C. date

D. date and time

Answer: B

33. week attribute defines ____________

A. week

B. year

C. week and year

D. week, month and year

Answer: C

34. tel attribute is supported by the _________ browser.

A. Chrome

B. Safari

C. Opera

D. Internet Explorer

Answer: B

35. Which attribute is not used on new forms?

A. size

B. text

C. name

D. maxlength

Answer: A

36. Which attribute is not used for the radio type?

A. name

B. value

C. checked

D. selected

Answer: D

37. Which attribute is used with <select> element?

A. multiple

B. selected

C. name

D. value

Answer: A

38. Which attribute specifies a unique alphanumeric identifier to be associated with an element?

A. class

B. id

C. article

D. html

Answer: B

39. The _____________ attribute specifies an inline style associated with an element, which determines the rendering of the affected element.

A. dir

B. style

C. class

D. article

Answer: B

40. Which attribute is used to provide an advisory text about an element or its contents?

A. tooltip

B. dir

C. title

D. head

Answer: C