HTML Attributes-1
1. Which of the following HTML attribute is used to define inline styles?
a) style
b) type
c) class
d) None of the above
Answer: A
The style attribute is used to define inline style.
2. An HTML file is saved by using the ________ extension.
a) .htm
b) .ht
c) .web
d) .html
Answer: D
.html extension is used to save HTML files.We can also save our HTML file using .htm extension but it is preferred to use .html extension.
3. Which of the following are the attributes of the tag?
a) method
b) action
c) Both (a) & (b)
d) None of the above
Answer: C
No explaination is given for this question.
4. Which of the following attribute is used to provide a unique name to an element?
a) class
b) id
c) type
d) All of the above
Answer: B
The id attribute is used to specify a unique id for an element.
5. Imagelink can show a text label if you add property
a) alt
b) str
c) alternative
d) All of the above
Answer: A
alt property is used to show a text label on imagelink.
6. Which property tells how many rows a cell should span?
a) colspan = n
b) rowspan = n
c) Both (a) & (b)
d) None of the above
Answer: B
No explaination is given for this question.
7. The attribute used choose the type of font in HTML is
a) Character
b) Face
c) Text-type
d) All of the above
Answer: B
No explaination is given for this question.
8. What does vlink means
a) active link
b) visible link
c) visited link
d) None of the above
Answer: C
vlink means visited link.
9. The attibute used to create the actual section within the current HTML document is
a) LINK
b) HERF
c) BASE
d) NAME
Answer: D
No explaination is given for this question.
10. The default value of border attribute is
a) 1 pixel
b) 2 pixel
c) 3 pixel
d) None of the above
Answer: A
No explaination is given for this question.