NEW
Font size
WorksheetsCSS Quiz
Total questions: 10
Worksheet time: 3mins
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
sets the element to one side of the page
margin
width
float
height
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
What does a class do?
adds color to words
adds style to specific elements
adds style to a whole page
adds a lot more work
Select the rule set to make all the text in your web page blue and centered.
p {
color: blue;
}
body {
text-align: left;
color: blue;
}
p {
text-align: center;
color: blue;
}
body {
text-align: center;
color: blue;
}
Which selector will change the font of the text?
font-size
text-align
font-famiy
text-decoration
What will this rule set create?
h1 {
text-decoration: underline overline dotted red;
}
red waves under the heading
red dots over and under the heading
red waves over and under the heading
red dots over the heading
Which rule set would change the font size to 24?
font-size: 24
size: 24;
font-size: 24;
font size: 24;
