Web Tech Chapter Four

11 September 2022
4.7 (114 reviews)
19 test answers

Unlock all answers in this set

Unlock answers (15)
question
When CSS is coded in the body of the web page as an attribute of an HTML tag it is called ________. Question options: Embedded Inline External Imported
answer
inline
question
According to the CSS order of precedence, ______ styles override ________ styles. Question options: external, embedded embedded, inline inline, external external, inline
answer
inline, external
question
Which of the following is the CSS property used to set the background color? Question options: bgcolor background-color color none of the above
answer
background-color
question
Select the code below that uses CSS to configure a background color of #eaeaea for a web page. Question options: body {background-color:#eaeaea; } document {background-page:#eaeaea; } body {bgcolor:#eaeaea; } None of the above
answer
body {background-color:#eaeaea; }
question
Which of the following is correct CSS syntax? Question options: p { color: #000000; } p { color=#000000; } p : color #000000; p { color;#000000; }
answer
p { color: #000000; }
question
Which of the following is a CSS selector that will configure the paragraph elements within the footer element. Question options: p footer footer p #footer p .footer p
answer
footer p
question
Use the ______ element to associate a web page with an external style sheet. Question options: target a include link
answer
link
question
Which of the following will configure all the span elements with red (#FF0000) text color? Question options: span { color: #FF0000; } #span { color: #FF0000; } .span { color: #FF0000; }
answer
span { color: #FF0000; }
question
Select the code below that configures a class called "offer" with blue text using CSS. Question options: offer { color: blue; } .offer { color: blue; } .offer { text: blue; } #offer { color: blue; }
answer
.offer { color: blue; }
question
Where do you place the code to associate a web page with an external style sheet? Question options: in the external style sheet in the DOCTYPE of the web page document in the body section of the web page document in the head section of the web page document
answer
in the head section of the web page document
question
Use the _____ element to code embedded styles on a web page. Question options: link style embed css
answer
style
question
Cascading Style Sheet rules are comprised of: Question options: Selectors and Declarations Properties and Declarations Selectors and Attributes Elements and Attributes
answer
Selectors and Declarations
question
Use the ______ element to create a generic area or section on a web page that is physically separated from others. Question options: div strong h1 small
answer
div
question
Select the items below that can be used as a CSS Selector. Question options: an HTML element a class name an id name All of the above
answer
all of the above
question
An External Style Sheet uses the _____ file extension. Question options: ess css html No file extension is necessary
answer
css
question
To apply a style to exactly one element on a web page, configure a CSS _____________. Question options: group id class None of the above
answer
id
question
Which of the following is the CSS property used to set the text color? Question options: bgcolor background-color color none of the above
answer
background-color
question
To apply a style to one or more of elements on a web page, configure a CSS _____________. Question options: group id class attribute
answer
class
question
Which type of selector is specified by placing a # symbol in front of the selector name? Question options: tag first class id
answer
id