HTML Attributes-2
1. Which of the following is not an attribute of <form> tag?
a) action
b) method
c) name
d) url
Answer: D
The url attribute is not an attribute of <form> tag.
2. Which is not a property of attribute behaviour of <marquee> tag?
a) scroll
b) blur
c) Alternate
d) slide
Answer: C
No explaination is given for this question.
3. Hyperlinks are defined with <a> tag and address is specified by
a) href attribute
b) hlink attribute
c) src attribute
d) None of the above
Answer: A
No explaination is given for this question.
4. Which attribute sets the text direction as related to the lang attribute.
a) lang
b) sub
c) dir
d) None of the above
Answer: C
The dir attribute is used to specify the text direction for an element.
5. Which attribute is used to set a global identifier for a microdata item?
a) key
b) itemid
c) itemclass
d) None of the above
Answer: B
itemid attribute is used to set a global identifier for a microdata item.
6. Which attribute
a) dataFormatAs
b) datafld
c) datasrc
d) None of the above
Answer: B
No explaination is given for this question.
7. The accesskey attribute specifies a keyboard navigation accelerator for the element.
a) True
b) False
Answer: A
No explaination is given for this question.
8. 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
title attribute is used to display text when hovering over the element.
9. spellcheck attribute is used for
a) Checks spelling
b) Indicates if spell checking is allowed
c) Checks spelling and corrects it
d) Checks spelling of a given particular text only
Answer: B
No explaination is given for this question.
10. checked attribute is used for
a) Whether on page load element should be checked
b) Whether on page load all form element should be checked
c) Whether on page load all list element should be checked
d) Whether on page load all multimedia elements should be checked
Answer: A
No explaination is given for this quesiton.