
CSS Classes Quiz
Quiz
•
Computers
•
7th Grade
•
Practice Problem
•
Medium
Chimp Attack
Used 9+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a CSS class used for?
To insert an image
To add a link to a website
To style multiple elements the same way
To create a new webpage
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a CSS class in a stylesheet?
classname: {}
{}
#classname {}
.classname {}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used to define a class in CSS?
:
@
.
#
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can multiple elements have the same CSS class?
Only if they are in different stylesheets
Only if they are in the same stylesheet
No
Yes
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to style all elements with the class 'blue-text' so the text is blue?
.blue-text { color: blue; }
blue-text { color: blue; }
#blue-text { color: blue; }
{ color: blue; }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can an element have more than one class?
Yes, by separating them with a space
No, only one class is allowed
No, an element can only have an ID
Yes, but only if they are in different stylesheets
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about class names in CSS?
They must start with a number
They must always be lowercase
They can contain spaces
They can include letters, numbers, hyphens, and underscores
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
AI QUIZ
Quiz
•
6th - 8th Grade
12 questions
Robot C Quiz
Quiz
•
7th Grade
11 questions
Website constructs
Quiz
•
6th - 8th Grade
10 questions
Bitmap v Vector Images
Quiz
•
KG - University
14 questions
Taylor Chess Quiz
Quiz
•
4th - 12th Grade
10 questions
adobe flash
Quiz
•
7th Grade
10 questions
GCSE J277 - Computational Thinking Keyword Quiz
Quiz
•
7th Grade
10 questions
R082 Book Cover Assets planning
Quiz
•
7th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
