HTML Classes and ID

HTML Classes and ID

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

HTML Formatting

HTML Formatting

9th Grade

10 Qs

HTML Headings and Images

HTML Headings and Images

8th - 10th Grade

8 Qs

7.2 Knowledge check

7.2 Knowledge check

9th Grade

10 Qs

مراجعة عامة في العلامات المخصصة للغة الـ HTML

مراجعة عامة في العلامات المخصصة للغة الـ HTML

10th Grade

7 Qs

HTML Basics

HTML Basics

9th Grade - Professional Development

9 Qs

ôn giưa ki 2 tin12

ôn giưa ki 2 tin12

12th Grade

10 Qs

Kuis Dasar-Dasar HTML

Kuis Dasar-Dasar HTML

9th Grade

10 Qs

ICS Unit 2 Lesson 7 Review - RGB & CSS Classes CSD

ICS Unit 2 Lesson 7 Review - RGB & CSS Classes CSD

7th - 12th Grade

10 Qs

HTML Classes and ID

HTML Classes and ID

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

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>