wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CodeHS CSS – Styling Websites (Part 1) Review / Quiz

Total questions: 15

Worksheet time: 9mins

Name
Class
Date
1.

CSS stands for _________.

a)

Cascading Style Sheets

b)

Computer Style Syntax

c)

Creative Style System

d)

Centralized Style Sheet

2.

What are 2 problems with using HTML to style pages?

a)

a. HTML styling takes up a lot of time b. HTML styling is not scalable

b)

c. HTML styling improves website speed b. HTML styling is always responsive

c)

d. HTML styling automatically optimizes images b. HTML styling supports all browsers

d)

e. HTML styling provides advanced animation features b. HTML styling is always secure

3.

What are possible values for the color property? (multiple correct answers)

a)

color can't be added

b)

hexadecimal color values

c)

named colors

d)

oRGB color values

4.

Where do we add the <style> tags on our HTML page? Why do they go there?

a)

We add them in the <head> tag. They go there because they are part of the metadata that affects the appearance of the page.

b)

We add them in the <body> tag. They go there because they should be visible to users.

c)

We add them after the closing </head> tag. They go there because they load faster.

d)

We add them inside every

tag. They go there because they only affect that section.

5.

When we use the tag as a selector, it selects ________ elements with that tag.

a)

HTML

b)

CSS

c)

JavaScript

d)

XML

6.

What is a class in CSS?

a)

Attribute to add hyperlinks

b)

Attribute to style a specific group of elements

c)

Attribute to add colors

d)

Attribute to add borders

7.

Where do we add the class information in the HTML tag? Provide at least one example.

a)

We add the class information in the opening tag

b)

We add it in the closing tag

c)

We add it right before each opening tag

d)

We add it right after each closing tag

8.

You can only have one class for each HTML element.

a)

True

b)

False

9.

Rules for creating class names:

a)

Cannot have spaces

b)

Can start with a number

c)

Cannot start with a number

d)

Can start with a number

10.

True or False: Class styling will override tag styling.

a)

True

b)

False

11.

What are some naming conventions for classes?

a)

Names should be short and concise.

b)

Names should contain special characters and spaces.

c)

Names should be specific and descriptive.

d)

Names should be written in all lowercase with no structure.

12.

This is a picture of a ____.

a)

CSS Rule

b)

HTML Rule

c)

Tags

d)

Coding

13.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

14.

What code in the stylesheet could have made the text green? (Choose TWO)

a)

.p {

color:green;

}

b)

p {

color:green;

}

c)

.special {

color:green;

}

d)

special {

color:green;

}

15.

Which one is a PROPERTY?

a)

width:

b)

1000px;

c)

#wrapper