WorksheetsYr 11 - CSS
Total questions: 22
Worksheet time: 11mins
What is the difference between HTML and CSS?
CSS is one type of HTML
HTML gives a webpage structure. CSS provides styling.
CSS structures a webpage. HTML strictly provides styling.
There is no difference.
How can you make a un order list?
<list>
<ol>
<dl>
<ul>
What does CSS stand for?
Creative Style Sheets
Cascading Style Sheets
Colorful Style Spread
Computer Style Spread
Padding...
pushes the content away from the border of the element
pushes the element away from other elements
Makes the element invisible
Make the element visible.
Which is the value in this CSS rule?p {color: red;}
p
color
red
{}
Which is correct CSS syntax?
{ body; color=black;}
body: color= black
body {color:black;}
(body color is black)
What unit of measurement does CSS use for size?
px
em
%
All work
Select the rule to make all the text in your web page blue and centered.
p {
colour: blue; }
body {
text-align: left;
colour: blue; }
p {
text-align: center
colour: blue; }
body {
text-align: center
colour: blue; }
What symbols go around the properties for each CSS selector?
< >
[ ]
{ }
( )
In CSS, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and HSLA values.
True
False
What is wrong with this code?
The style sheet <link> statement belongs between <head> and </head>
The style sheet <link> statement belongs between <title> and </title>
The style sheet <link> statement belongs between </head> and <body>
The style sheet <link> statement belongs immediately after the DOCTYPE statement
Change the border size of the body or image
border-style
border-width
border-color
width
To create a dotted border around the page
border-style
border-width
border-color
width
Set the color of the border
border-style
border-width
border-color
width
Which selector will change the font of the text?
font-size
text-align
font-famiy
text-decoration
Which rule set would change the font size to 24?
font-size: 24
size: 24;
font-size: 24;
font size: 24;
How do you change the font color with CSS?
font-color: green;
color: green;
change-font-color: green;
fontcolor=green;
How would you define
- green component of 9f
- blue component of 25
- red component of da
#9f25da
#25da9f
#da9f25
#da259f
How would you define
• blue component of d2
• red component of 74
• green component of ab
#ab74d2
#d274ab
#74d2ab
#74abd2
