Chapter 3 Quiz
Use the ______ tag to associate a web page with an external style sheet. A. <a> B. <link> C. <target> D. <include>
B
Which CSS property configures the size of text? A. size B. font-size C. text-size D. font-weight
B
Select the code below that uses CSS to configure a class called "offer" with blue text that uses the Arial or sans-serif font typeface. A. #offer { color:blue; font-family:Arial,sans-serif;} B. .offer { text:blue; font-family:Arial,sans-serif;} C. #offer { color:blue; font-family:Arial,sans-serif;} D. .offer { color:blue; font-family:Arial,sans-serif;}
D
Select the code below that uses CSS to configure an id named "example" that configures small, italic text. A. #exampe{ font-size: small; font-weight: italic; } B. .example { font-size: small; font-style: italic; } C. .example { font-size: small; font-style: italic; } D. #example { font-size: small; font-style: italic; }
D
Use the ______ tag to configure a section of a web page that is physically separated from others. A. <a> ... </a> B. <span>... </span> C. <i> ... </i> D. <div>...</div>
D
Which of the following can be a CSS selector? A. an HTMl element name B. a class name C.an id name D. all of the above
D
Which CSS property can be used to configure italic text? A. font-style B. font-weight C. font-italic D. font-type
A
Which CSS property configures the color of text? A. color B. font-style C. font-color D. text-color
A
An external style sheet uses the _____ file extension. A. css B. No file extension is necessary C. ess D. htm
A
To apply a style to a certain group of elements on a web page, configure a CSS _____________. A. class B. id C. group D. None of the above
A
CSS was first proposed as a standard by the W3C in ______. A. 2002 B. 1996 C. 1992 D. none of the above
B
Select the code below that uses CSS to configure a background color of #eaeaea for a web page. A. body {bgcolor:#eaeaea; } B. document {background-page:#eaeaea; } C. body {background-color:#eaeaea; } D. None of the above
C
Use the __________ property to configure bold text using CSS A. you cannot configure bold text with CSS B. font-style C. font-weight D. bold
C
Fill in the blank. The __________ CSS property can be used to center text within a block display element.
Text-align
Which CSS property configures the capitalization of text? A. text-decoration B. font-type C. text-transform D. font-weight
C
Which CSS property configures the color of text? A. font-color B. font-style C. color D. text-color
C
The ___________________ property configures a shadow effect on the text displayed within an element. A. shadow B. text-shadow C. font-weight D. font-style
B
The declaration property used to set the text color on a web page is: A. bgcolor B. color C. None of the above D. text-color
B
Use the _____ tag to code embedded styles on a web page. A. <embed> B. <style> .. </style> C. none of the above D. <link>
B
Which of the following describe two components of CSS rules? Cascading Style Sheet rules are comprised of: A. None of the above B. Selectors and Declarations C. Properties and Declarations D. Selectors and Attributes
B
Which of the following is the CSS property used to set the background color of a web page A. bgcolor B. background-color c. color D. none of the above
B
Which of the following sets is the declaration property used to set the font typeface for an area of a web page? A. face B. font- family C. font - face D. size
B
Which of the following uses CSS to configure a class called news with red text, large font, and arial or a sans-serif font? A. news {color:red; font-size:large; font-family:arial, sans-serif;} B. .news {color:red; font-size:large; font-family:arial, sans-serif;} C. .news{text:red font-size:large; font-family:arial, sans-serif;} D. #news{text:red; font-size:large; font-family:arial, sans-serif;}
B
Where do you place the code to associate a web page with external style sheet? To associate an external style sheet with a web page, code: A. a link element in the body section of the web page B. a style element in the head section of the web page C. a style element in the body section of the web page D. a link element in the head section of the web page
D
Which of the following associates a web page with an external style sheet? A. <style rel="external"href="style".css"> B. <style src="style.css"> C. <link rel="stylesheet"href"style.css"> D. <link rel = "stylesheet"src="style.css">
C
Which of the following do you configure to apply a style to only one area on a web page? A. group B. class C. id D. none of the above
C
Which type of CSS is coded in the body of the web page as an attribute of an HTML tag? A. embedded B. external C. inline D. imported
C
which of the following is true if a web page contains both a link to an external style sheet and embedded styles? A. embedded styles will be applied first, and then the external styles will be applied. B. the inline styles will be used. C. external styles will be applied first, and then the embedded styles will be applied. D. the web page will not be displayed.
C
Fill in the blank. The _____________ element is useful for creating areas on a webpage that are embedded within paragraphs or other block display elements.
Span
Fill in the blank. The _____________ CSS property can be used to indent the first line of text.
Text-indent