HTML Classes and ID

HTML Classes and ID

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

5 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Create a class selector named "special". Add a color property with the value "blue" inside the "special" class. Options: <style> .special {color:blue ;} </style>, <style> .class {color:#0000ff ;} </style>

Back

<style> .special {color:blue ;} </style>

2.

FLASHCARD QUESTION

Front

Add the correct class to make the H1 element red, given the following head element.
<head>
<style>
.mystyle {color:red;}
</style>
</head>

Back

<h1 class="mystyle">My Home Page</h1>

3.

FLASHCARD QUESTION

Front

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>

Back

<h1 class="intro special">My Home Page</h1>

4.

FLASHCARD QUESTION

Front

Add the correct HTML attribute to make the H1 element red, given the following head element.

Back

My Home Page

5.

FLASHCARD QUESTION

Front

Create an id selector named "special". Add a color property with the value "blue" inside the "special" declaration block.

Back

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?