HTML Classes and ID

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Preston Rowland
Used 15+ times
FREE Resource
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>
Similar Resources on Wayground
10 questions
Soal HTML UKIN PRETEST

Quiz
•
11th Grade
10 questions
"Web-программалау" бөлімі

Quiz
•
10th Grade
7 questions
Understanding HTML Structure

Quiz
•
9th Grade
10 questions
HTML

Quiz
•
9th Grade
10 questions
TLE-ICT 10

Quiz
•
10th Grade
9 questions
Front_lesson1

Quiz
•
9th - 12th Grade
7 questions
HTML tekstas, spalva, dydis, šriftas

Quiz
•
4th Grade - Professio...
10 questions
Teoría HTML

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade