Quiz 4: CSS
What CSS selector would style a tag that looks like this: < ... class="puppy">
.puppy { ...
Which of the following statements are true?
A "class" attribute can be used many times in an HTML file An "id" attribute should only be used once in an HTML file
<p style="color: red;">
It allows the application of the specified CSS rule to the content of the paragraph
Why is there more than one font listed in the following CSS rule? body { font-family: "Trebuchet MS", Helvetica, Arial, sans-serif; }
They are listed in descending preference order if fonts are not present in the browser
Which of the following is not a way to include CSS in an HTML page?
Using the <font> tag to enclose other tags
What is the JavaScript function that allows one to "look up" a tag by the value of the "id=" attribute?
document.getElementById()
Which of these CSS rules make text appear in a bold face font?
font-weight: bold
Which CSS selector controls how a link (anchor tag) looks while the user mouses over the link (i.e. while hovering)?
hover
What tag is used to import a style sheet into an HTML document?
link
Which of the following CSS selectors is between the content area and the border? (CSS box model)
padding
Which HTML tag does nothing to the text it surrounds and has as its sole purpose to create a "handle" so as to be able to apply CSS to the text.
span
What CSS rule allows you include a tag in markup but hide it from view in the browser?
visibility: hidden;