Download CSCI 106 Quiz 3 - Advanced Web Page Design and Web Site Administration and more Quizzes Computer Science in PDF only on Docsity! CSCI 106 Advanced Web Page Design and Web Site Administration Spring, 2009 QUIZ #3 20 Points Read the questions carefully. Always choose the best answer. 1. ________ allow you to specify the style of your page elements (spacing, margins, etc.) separately from the structure of your document. a) Filters b) Style declarations c) Cascading Style Sheets d) Text flows 2. ________ are declared in each individual XHTML element using the style attribute. a) Cascading style sheets b) Inline styles c) External styles d) User style sheets 3. The proper format for an inline style is: a) <p style = “font-size = 20pt”> b) <p font-style = “20pt”> c) <p style = “font-size = 20pt”> d) <p style = “font-size: 20pt”> 4. Text style sheets use which of the following MIME types? a) image/gif b) text/javascript c) text/css d) text/html 5. In the body of a style sheet, CSS rule properties are followed by a ________. a) dot b) CSS operator c) colon d) semicolon 6. Multiple CSS rule properties in style sheets are separated by a ________. a) dot b) CSS operator c) colon d) semicolon 7. Which of the following selections is the proper way to apply this CSS rule: .blue { color: blue } a) <p color = "blue"> b) <p class = "blue"> c) <p color = .blue> d) <p class = .blue> 8. How will the following CSS rule alter the Web page if it is applied in a style sheet? h1 { font-family: Arial, sans-serif } a) All text in h1 elements will have the Arial font, while text in other elements will use a sans-serif font. b) All text in h1 elements will have use a sans-serif font, while text in other elements will use Arial. c) All text in h1 elements will have the Arial font if sans-serif is not supported by the system. d) All text in h1 elements will use a sans-serif font if Arial is not supported by the system. 9. The hover pseudo-class gives the author access to text styling under which situation? a) When the mouse is over an element b) When the mouse moves off of an element c) When the mouse is to the left of an element d) None of the above 10. To which text does the following CSS rule apply: li em { color: red; font-weight: bold } a) <li><em>text</em></li> b) <li>text</li> and <em>text</em> c) both a and b d) neither a nor b