NEW
Font size
WorksheetsChapter 6 Cascading Style Sheets
Total questions: 20
Worksheet time: 10mins
What does CSS stand for?
Cascading Style Sheet
Computer Style Sheet
Computer Styling System
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
back
font-color
background-color
What symbol indicates that numeric values will be hexadecimal instead of decimal?
*
@
#
!
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 declarations will turn the text in a paragraph to bold?
font-weight: bold;
font=bold;
font-size: large;
font-weight: normal;
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
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 {color: blue;}
h2 {text-color:blue;}
style="h2:color,blue;"
h2 text-color:blue
What special element will tell the browser the location of the CSS file?
<css>
<link>
<inline>
<external>
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 white-space 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 the above 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?
A list of style rules are strictly applied from the bottom to the top of the list, with no exceptions.
The final properties of an element are changed by applying a variety of rules to that particular location within the overall HTML page.
One mistake in a higher rule will immediately wipe out all lower rules.
Once you start to style an element, you are required to continue adding styles until all possible properties are defined.
What special element will tell the browser the location of the CSS file?
<css>
<link>
<inline>
<external>
What symbols are used in external CSS files to create a comment?
<!--and-->
/*and*/
###
//
Given a RGB value of #00FF00, what will be the resulting color on the screen?
Red
Blue
Green
A mixture of red, green and blue
How do you create an inline style?
Define a style rule in your < head > area
Add a list of property attributes to the target element
Add a “style” attribute to the target element
Add a “css” attribute to the target element
Each spot of color on a monitor is defined in RGB, which stands for:
Red, Gray, Brown
Red, Green, Blue
Rose, Green, Black
Red, Green, Black
How many digits are there in the hexadecimal numbering system?
2
16
10
255
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.
What does this line of code in an external CSS file tell the browser? @charset "utf-8"
The character set you are using
The font style to use
That you are using base-8
To bold the text on the screen
