
HTML Classes and ID
Authored by Preston Rowland
Computers
9th - 12th Grade
Used 15+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Create a class selector named "special".
Add a color property with the value "blue" inside the "special" class.
<style>
.special {color:blue ;}
</style>
<style>
.class {color:#0000ff ;}
</style>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Add the correct class to make the H1 element red, given the following head element.
<head>
<style>
.mystyle {color:red;}
</style>
</head>
<h1 color="red">My Home Page</h1>
<h1 class="mystyle">My Home Page</h1>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Add two classes to the H1 element, to make the background pink and the color red, given the following head element.
<head>
<style>
.intro {background:pink;}
.special {color:red;}
</style>
</head>
<h1 class="intro special">My Home Page</h1>
<h1 bg="pink" color="red">My Home Page</h1>
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Add the correct HTML attribute to make the H1 element red, given the following head element.
<style>
#myheader {color:red;}
</style>
<h1 id="red">My Home Page</h1>
<h1 id="myheader">My Home Page</h1>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Create an id selector named "special".
Add a color property with the value "blue" inside the "special" declaration block.
<style>
#special {color:blue;}
</style>
<style>
#id-special {color:green;}
</style>
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
EMPTECH L4 Q2
Quiz
•
12th Grade
10 questions
Managing and Formatting Word Documents
Quiz
•
12th Grade
10 questions
Espacio Opcional 3er Año Pío XII
Quiz
•
10th Grade
10 questions
Kuiz Pemantapan Latihan Amali Pangkalan Data
Quiz
•
12th Grade
10 questions
10 класс повторение CSS and Внедрение мультимедиа
Quiz
•
10th Grade
10 questions
KIỂM TRA 15P TIN HỌC 9
Quiz
•
9th Grade
10 questions
TIN 10 - BÀI 4
Quiz
•
10th - 11th Grade
10 questions
MS PowerPoint
Quiz
•
11th 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade