Font size
WorksheetsCSS Quiz
Total questions: 65
Worksheet time: 1hrs 5mins
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 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
Which rule set would change the font size to 24?
font-size: 24
size: 24;
font-size: 24;
font size: 24;
What symbol should you use to target an id in css?
.
+
id
#
What symbol should you use to target a class name in css?
#
()
.
class
What is the correct syntax to change the background color with css?
background-color: purple;
background-color = "purple";
backgroundcolor=orange
change-background-color: purple
TRUE OR FALSE: HTML is used to style web pages.
True
False
TRUE OR FALSE: CSS is used to style web pages
True
False
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
What tag do you use to make a numbered list?
<list>
<ol>
<li>
<ul>
TRUE OR FALSE: All tags require a closing tag.
True
False
Where should you put the link tag to connect your CSS and HTML file?
Between the <head> </head> in HTML
Between the <body> </body> in HTML
None of the above.
Which of the following is the correct CSS link tag?
<link rel="styles" href="stylesheet.css">
<link href="stylesheet">
<link rel="stylesheet" src="styles.css">
<link rel="stylesheet" href="styles.css">
p {color: red;}
border.p {color: red;}
placed within his webpage?
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
Which one is the correct syntax for CSS?
property {selector : value}
value {property : selector}
selector {value : property}
selector { property : value}
Which of the following ways is correct to Set the Grid Container ?
<div class="grid-container">
<div class="container">
None of the above
How do you change font sizes in CSS?
font-family: 20pt;
font-weight: 20pt;
font-size: 20pt;
font-align: 20px;
How can we position an image to the left?
float: left;
align: left;
padding: left;
margin: left;
What code in the stylesheet could have made the text green? (Click on the image to make it larger)
1 and 3
2 and 4
2 and 3
3 and 4
1, 2, 3, and 4
The web developer wants to make the "My Page" text larger. Which TWO of the following would work? (Click on image to make it larger)
Use <h6> instead of <h3>
Use <h1> instead of <h3>
Put the "My Page" text inside the tags.
Use CSS to set the font-size property of the h3 tag
Put the code `style="larger"` inside the h3 tag.
If you wanted an element to have a curved corner, like an image, what CSS property would you use to do it?
float
border-style
border-width
border-radius
margin
Which property would you use to change how tall an image is on an html page?
width
height
margin
float
Which property would select to change the amount of space around an image on an html page?
float
margin
height
width
th
one cell in a row of headers
one data cell
one row of headers
one column of headers
tr
one column on the right
one cell in a table
one row of anything
one column of anything
td
one cell in a header
one column of a row
one row of a column
one data cell in a row
What is a colspan?
An attribute that is used with <th> or <td> element to horizontally span two or more columns.
An open-source and front-end framework that contains HTML and CSS design templates.
An attribute that is used with <th> or <td> element to vertically span two or more rows
This is an element that we used on every website
What is a table caption?
Creates a table. Contains all other table elements.
Adds a caption or title, which appears above the table by default.
Contains all data for a table row
Designates table cell contents. By default, the data is left-justifed.
