HTML Classes and ID

HTML Classes and ID

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Assessment#1_Q2

Assessment#1_Q2

10th Grade

10 Qs

Cascading Style Sheets (906)

Cascading Style Sheets (906)

9th Grade

10 Qs

HTML. CSS

HTML. CSS

10th Grade

10 Qs

Ucertify Introduction to Cascade Style Sheet Technology

Ucertify Introduction to Cascade Style Sheet Technology

7th Grade - University

10 Qs

Ciw Introduction to Cascade Style Sheets Technology

Ciw Introduction to Cascade Style Sheets Technology

7th Grade - University

10 Qs

HTML and CSS

HTML and CSS

7th - 9th Grade

10 Qs

Soal HTML UKIN PRETEST

Soal HTML UKIN PRETEST

11th Grade

10 Qs

Code.org (Unit 2)

Code.org (Unit 2)

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>