NEW
Font size
WorksheetsCompuscholar Chapter 6 Exam Review
Total questions: 20
Worksheet time: 10mins
What term describes one specific feature such as size or color?
Property
Declaration Block
Rule
Value
Which property would you set to control the color of the background in an element?
color
background-color
back
font-color
What symbol indicates that numeric values will be hexadecimal instead of decimal?
@
*
!
#
Which of the following declarations will turn the text in a paragraph to bold?
font-weight: normal;
font-size: large;
font=bold;
font-weight: bold;
What element would you style to set default properties for all of the other elements on your web page?
< p >
< html >
< head >
< body >
Which of the following is NOT a way to apply CSS properties to your website?
The inline method
The embedded method
The outline method
The external method
What does this line of code in an external CSS file tell the browser? @charset "utf-8";
The font style to use
That you are using base-8
The character set you are using
To bold the text on the screen
What symbols are used in external CSS files to create a comment?
<!--and-->
/* and */
###
//
What is the correct format for creating a style rule in an external CSS file?
Selector name, opening curly brace, declaration block, closing curly brace
Opening curly brace, selector name, declaration block, closing curly brace
Declaration block, Selector name, opening curly brace, closing curly brace
Selector name, declaration block, opening curly brace, closing curly brace
Given a RGB value of #00FF00, what will be the resulting color on the screen?
Red
Green
Blue
A mixture of red, green, and blue
What is the disadvantage of placing inline styles in your HTML pages?
If you want to make a site-wide style change, you need to find and edit every copy of those inline styles
Inline styles clutter your HTML mark-up and make it harder to read
Both of these are disadvantages
Neither of these are disadvantages
How do you create an inline style?
Add a “style” attribute to the target element
Add a “css” attribute to the target element
Add a list of property attributes to the target element
Define a style rule in your < head > area
Each spot of color on a monitor is defined in RGB, which stands for:
Red, Green, Blue
Red, Gray, Brown
Rose, Green, Black
Red, Gray, Black
How many digits are there in the "hexadecimal" numbering system?
2
10
16
256
What is true about the format of a declaration block found inside a < style > element instead of inline?
The format is the same as inline, but you might add some whitespace to put each declaration on a different line.
You do not need to separate declarations with semi-colons at the end.
You can use an equals sign (=) between the property and value.
All of these are true.
What does this code do? < style type="text/css" > p { color: blue; }
Creates blue text anywhere “text/css” appears on the web page
Makes every “p” text character on the web page blue
Creates a web page with a blue background
Defines a blue color for text inside a paragraph element
The word “cascading” in CSS is best described by which statement below?
The final properties of an element are changed by applying a variety of rules to that particular location within the overall HTML page
A list of style rules are strictly applied from the bottom to the top of the list, with no exceptions.
Once you start to style an element, you are required to continue adding styles until all possible properties are defined.
One mistake in a higher rule will immediately wipe out all lower rules.
If you define CSS rules 1, 2 and 3 as shown below, properties from which rule(s) would apply to a paragraph < p > element located within the body? body { /* Rule 1 */ color:green; } h1 { /* Rule 2 */ color:blue; } p { /* Rule 3 */ font-size:16px }
Rule 1 and Rule 3
Rule 3 only
Rule 1, Rule 2, and Rule 3
Rule 2 and Rule 3
What special element will tell the browser the location of the CSS file?
< css >
< link >
< inline >
< external >
Which of the following lines of code will correctly set the color of text inside a < h2 > element to blue, when found in an external CSS file?
h2 { text-color:blue; }
style="h2:color;blue;"
h2 { color: blue; }
h2 text-color:blue
