Chapter 4: Cascading Style Sheets

Ace your homework & exams now with Quizwiz!

4.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

a

4.14 In which of the following do you set the MIME type of the external style sheet? a) <link></link> b) <style></style> c) <a></a> d) <mime></mime>

a

4.22 The ________ is the distance between the content inside an element and the inside of its border. a) padding b) border c) margin d) float

a

4.28 If an author and a user both define absolute measurements, the CSS specification gives precedence to ________. a) author styles over user styles b) user styles over author styles c) neither author styles nor user styles d) both author styles and user styles

a

4.9 The hover pseudo-class allows you to change to an element's style in which situation? a) When the mouse is over the element b) When the mouse moves off of the element c) When the mouse is to the left of the element d) None of the above

a

4.18 Which is not a valid value for the background-position property? a) left b) ontop c) right d) center

b

4.2 ________ are declared in each individual HTML5 element using the style attribute. a) Cascading style sheets b) Inline styles c) External styles d) User style sheets

b

4.24 Which of the following is not a media type? a) print b) oral c) handheld d) screen

b

4.27 What is the default value of the display property for a div element? a) inline b) block c) hidden d) none

b

4.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>

b

4.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

c

4.12 Which of the following is not a relative-length measurement? a) 1.5em b) 20px c) 12pt d) 5ex

c

4.13 External style sheets are saved with the ________ extension. a) .html b) .txt c) .css d) .txtcss

c

4.15 If an element's position is declared as absolute then ________ . a) positioning of the element is handled by the browser b) positioning is handled by the normal flow of elements on the page c) positioning is set according to the margins of its parent element d) positioning is handled by relative positioning

c

4.19 When using the width, height and overflow properties of an element, position can be ________. a) absolute b) relative c) both a and b d) none of the above

c

4.20 Setting the width property to 10em will create an element that has a width that is ________. a) size 10pt b) 10 times smaller than the font size c) 10 times larger than the font size d) italicized and 10 pt in size

c

4.21 The ________ property specifies the distance from other page elements. a) padding b) border c) margin d) float

c

4.23 Which of the following is not a border property? a) border-width b) border-style c) border-shape d) border-color

c

4.26 An HTML5 document has a div with class = "fade" that contains an a element. What is the effect of the style rule div.fade:hover a {display:none}? a) It causes the link to disappear when the mouse moves over the link. b) It causes the div to disappear when the mouse moves over the div. c) It causes the link to disappear when the mouse moves over the div. d) It causes the div to disappear when the mouse moves over the link.

c

4.4 Style sheets use which of the following MIME types? a) image/gif b) text/javascript c) text/css d) text/html

c

4.5 In the body of a style sheet, a CSS property is separated from its value by a ________. a) dot b) CSS operator c) colon d) semicolon

c

4.11 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> c) <em>text</em> d) all of the above

d

4.16 Which of the following is an example of an inline element? a) span b) img c) em d) All of the above

d

4.17 Which of the following settings for a background image can be modified to create a "watermark" effect where scrolling will not move the image from its set position. a) background-image b) background-position c) background-repeat d) background-attachment

d

4.25 We define styles for all media types with the declaration ________. a) #media screen b) @media screen c) #media all d) @media all

d

4.29 What does the following CSS rule do? .note { font-size: 1.5em } a) It calls the method note for all objects with the argument of 1.5 pixels. b) It multiplies all text element font sizes with the value 1.5. c) It multiplies all text element font sizes within <style> tags by 1.5. d) It multiplies all text element font sizes with class = "note" by 1.5.

d

4.3 An example of the proper format for inline styles is: a) <p style = "font-size = 20pt"> b) <p font-style = "20pt"> c) <p style: "font-size = 20pt"> d) <p style = "font-size: 20pt">

d

4.6 Multiple CSS rule properties in style sheets are separated by a ________. a) dot b) CSS operator c) colon d) semicolon

d

4.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.

d


Related study sets

Chapter 34: Assessment and Management of Patients with Inflammatory Rheumatic Disorders

View Set

Chapter 28: Postpartum Maternal Complications

View Set

Nurs 377 Health & Illness Concepts 1 Exam 1

View Set

CHAPTER 11 FORENSICS STUDY GUIDE

View Set

Encounters with Reality scenarios

View Set