
CSS Class Selection Quiz
Authored by Carlita Scarboro-Vazquez
Architecture
11th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the general format for a CSS rule?
Selector followed by declarations inside curly braces
Declarations followed by selectors and semicolons
Declarations inside square brackets followed by selectors
Selectors followed by colons and declarations
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a CSS selector define?
Which HTML elements a CSS rule applies to
The specific style properties to be applied
The location of the CSS file
The version of CSS being used
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you select HTML elements by their tag in CSS?
Using the tag name as the selector
Using the style attribute of the tag
Using the class attribute of the tag
Using the ID attribute of the tag
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you select elements with a specific class in CSS?
Using a hash followed by the class name
Using an asterisk before the class name
Using a period followed by the class name
Using the class name directly
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What attribute is used to apply styles to specific groups of elements?
ID
Class
Type
Style
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the class attribute do?
Identifies elements for hyperlink targets
Connects elements to specific server-side scripts
Links HTML to specific JavaScript functions
Allows styling of specific groups of elements
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the effect of adding a class to an HTML element?
It makes the element invisible
It allows the element to be targeted by specific CSS rules
It changes the content of the element
It deletes the element from the document
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?