WorksheetsCSS3
Total questions: 27
Worksheet time: 14mins
Cascading Style Sheet rules are comprised of:
Selectors and Declarations
Properties and Declarations
Selectors and Attributes
Elements and Attributes
CSS is coded in the body of the web page as an attribute of an HTML tag it is called ________.
Embedded
Inline
External
Imported
Select the items below that can be used as a CSS Selector.
an HTML element
a class name
an id name
All of the above
Which of the following will configure all the span elements with red (#FF0000) text color?
span { color: #FF0000; }
#span { color: #FF0000; }
span { color: #FF0000; }
<span style=”color: #FF0000;”>
To apply a style to one or more of elements on a web page, configure a CSS _____________.
group
id
class
attribute
An External Style Sheet uses the _____ file extension.
ess
css
html
No file extension is necessary
Use the ______ element to associate a web page with an external style sheet.
target
a
include
link
Select the code below that uses CSS to configure a background color of #eaeaea for a web page.
body {background-color:#eaeaea; }
document {background-page:#eaeaea; }
body {bgcolor:#eaeaea; }
None of the above
Select the code below that configures a class called “offer” with blue text using CSS.
offer { color: blue; }
.offer { color: blue; }
.offer { text: blue; }
#offer { color: blue; }
Use the ______ element to create logical areas on a web page that are embedded within paragraphs or other block formatting elements.
div
span
both a and b
neither a nor b
Use the _____ element to code embedded styles on a web page.
link
style
embed
css
Use the ______ element to create a generic area or section on a web page that is physically separated from others.
div
strong
h1
small
CSS was first approved as a standard by the W3C in ______.
1996
2002
1992
none of the above
Which of the following is the CSS property used to set the background color?
bgcolor
background-color
color
none of the above
Which of the following is the CSS property used to set the text color?
bgcolor
background-color
color
none of the above
According to the CSS order of precedence, ______ styles override ________ styles.
external, embedded
embedded, inline
inline, external
external, inline
Which of the following is a CSS selector that will configure the anchor elements within the nav element.
nav a
.nav a
nav anchor
#nav a
To apply a style to exactly one element on a web page, configure a CSS _____________.
group
id
class
None of the above
Where do you place the code to associate a web page with an external style sheet?
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
Which of the following is a CSS selector that will configure the paragraph elements within the footer element.
p footer
footer p
#footer p
.footer p
Which of the following symbols terminates a style declaration?
: colon
; semi-colon
! exclamation mark
# hash mark
Which of the following is an HTML attribute that configures inline styles?
link
style
id
type
Which of the following is correct CSS syntax?
p { color: #000000; }
p { color=#000000; }
p : color #000000;
p { color;#000000; }
Which type of selector is specified by placing a # symbol in front of the selector name?
tag
first
class
id
True or False____ Embedded styles override or take precedence over external styles.
True
False
True or False_____ External styles override or take precedence over inline styles.
True
False
True or False ____Hexadecimal is a base 16 numbering system
True
False
