Question 1: Which of the following is true for a class selector?
Answer: d. It applies the style to all the elements defined with that style
Question 2: Which of the following does not apply to external styles?
Answer: c. Highest priority
Question 3: Read the following Code:
BODY {
Background: white url(“bar.gif”);
Background-repeat: repeat-y;
Background-position: center;
}
What will be the output of this code?
Answer: a. Image bar.gif will be tiled vertically in the background in the center of the page.
Question 4: Which of the following is not a valid text-decoration option?
Answer: b. Text-decoration :in-line
Question 5: You defined some links as follows:
A:link{color:green}
A:visited{color:blue}
A:hover{color:red)
A:active{color:black}
What will be the color, when the mouse goes over a link?
Answer: b. Blue
Question 6: The following is a style definition:
Td#aln
{text-align:center;
color:blue}
How will you refer to this style in your web page?
Answer: b. by using the id Attribute in a td cell
Question 7: Which of the following is not a valid property of an aural style sheet?
Answer: c. Load
Question 8: Your website displays some articles on java programming. The articles contain blocks of java code as well. If you want to leave ‘1 cm’ space above and below the code blocks, you would use:
Answer: b. Code{margin-top:1cm; margin-bottom:1cm}
Question 9: You are fetching customer names from a database. The names in the database are mostly in lowercase. What is the name of the text property which will facilitate capitalization of these names?
Answer: b. Text-transform
Question 10: Which of the following are correct values of the overflow property?
Answer: a. Visible; b. Hidden; c. Scroll; d. Auto
Question 11: Which element property is required to define internal styles?
Answer: b. Style
Question 12: Which of the following is not true for a style sheet?
Answer: a. A style sheet defines how an html element will be displayed
Question 13: You want to increase the space between the lines in all you paragraphs. What will you use?
Answer: c. P{line-height:1cm}
Question 14: The default value for the overflow property is:
Answer: c. Hidden
No comments:
Post a Comment