WorksheetsCSS
Total questions: 15
Worksheet time: 8mins
CSS stands for ___
Creative Style Sheet
Creative Scene Sheet
Cascading Sheets style
Cascading Style Sheets
CSS --- how HTML elements are to be displayed on screen, paper, or in other media
embodies
reads
describes
draws
External stylesheets are stored in --- files
CSS
html
HTML
JS
A CSS rule-set consists of a selector and a --block
statement
declaration
answer
lego
__ is a selector in CSS (it points to the HTML element you want to style: < p>).
s
l
m
p
CSS selectors are used to "___" (or select) the HTML elements you want to style
create
find
explore
p {
text-align: center;
color: red;
}
would show:
Red text in the middle of the screen
red text
red text to the left of the screen
text in the middle of the screen
.center {
text-align: center;
color: red;
}
In this example all HTML elements with class="center" will be _______________:
center-aligned
red
red and center-aligned
blue and center-aligned
In this example the <p> element will be styled according to class="center" and to class="_______":
<p class="center large">This paragraph refers to two classes.</p>
center
large
middle
paragraph
h1 {
color: navy
margin-left: 20px
}
What is missing for the code to run without errors?
>
<
:
;
<h1 style="background-color:DodgerBlue;">Hello World</h1>
<p style="background-color:Tomato;">Lorem ipsum...</p>
What colour would the paragraph be?
blue
dodger blue
tomato
red
You can set the color of borders.
true
false
In CSS, a color can be specified as an RGB value, using this formula:
rgb(red, green, blue)
true
false
RGBA color values are ___ of RGB color values with an alpha channel - which specifies the opacity for a colour.
a copy
an extension
a difference
The CSS margin properties are used to create ____ around elements, outside of any defined borders.
borders
white
margins
space
