Font size
WorksheetsCodeHS CSS – Styling Websites (Part 1) Review / Quiz
Total questions: 15
Worksheet time: 9mins
CSS stands for _________.
Cascading Style Sheets
Computer Style Syntax
Creative Style System
Centralized Style Sheet
What are 2 problems with using HTML to style pages?
a. HTML styling takes up a lot of time b. HTML styling is not scalable
c. HTML styling improves website speed b. HTML styling is always responsive
d. HTML styling automatically optimizes images b. HTML styling supports all browsers
e. HTML styling provides advanced animation features b. HTML styling is always secure
What are possible values for the color property? (multiple correct answers)
color can't be added
hexadecimal color values
named colors
oRGB color values
Where do we add the <style> tags on our HTML page? Why do they go there?
We add them in the <head> tag. They go there because they are part of the metadata that affects the appearance of the page.
We add them in the <body> tag. They go there because they should be visible to users.
We add them after the closing </head> tag. They go there because they load faster.
We add them inside every
tag. They go there because they only affect that section.
When we use the tag as a selector, it selects ________ elements with that tag.
HTML
CSS
JavaScript
XML
What is a class in CSS?
Attribute to add hyperlinks
Attribute to style a specific group of elements
Attribute to add colors
Attribute to add borders
Where do we add the class information in the HTML tag? Provide at least one example.
We add the class information in the opening tag
We add it in the closing tag
We add it right before each opening tag
We add it right after each closing tag
You can only have one class for each HTML element.
True
False
Rules for creating class names:
Cannot have spaces
Can start with a number
Cannot start with a number
Can start with a number
True or False: Class styling will override tag styling.
True
False
What are some naming conventions for classes?
Names should be short and concise.
Names should contain special characters and spaces.
Names should be specific and descriptive.
Names should be written in all lowercase with no structure.
This is a picture of a ____.
CSS Rule
HTML Rule
Tags
Coding
The blue is called an _____________
Declaration
Selector
Property
Value
What code in the stylesheet could have made the text green? (Choose TWO)
.p {
color:green;
}
p {
color:green;
}
.special {
color:green;
}
special {
color:green;
}
Which one is a PROPERTY?
width:
1000px;
#wrapper
