CodeHS 3.6 - Web Design

CodeHS 3.6 - Web Design

9th - 10th Grade

7 Qs

quiz-placeholder

Similar activities

CSS - HTML Styling Quiz

CSS - HTML Styling Quiz

CSS Rules Quiz

CSS Rules Quiz

Web Design Unit 3

Web Design Unit 3

CSS - Styling Websites Quiz

CSS - Styling Websites Quiz

Web Design #3

Web Design #3

Web Design

Web Design

Web Design

Web Design

CodeHS 3.6 - Web Design

CodeHS 3.6 - Web Design

Assessment

Quiz

Computers

9th - 10th Grade

Practice Problem

Medium

Created by

Lucas Jordan

Used 78+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid CSS rule?

h1 {

color: blue;

}

<h1> {

color: blue;

}

h1 {

color="blue";

}

h1 {

color=blue;

}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select by tag name

Select by class name

Select by id name


Which of the following ranks the selectors from highest precedence to lowest precedence?

Select by tag name, select by class name, select by id name

Select by id name, select by tag name, select by class name

Select by id name, select by class name, select by tag name

Select by class name, select by id name, select by tag name

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements are true about styling your web pages with CSS:


I. Styling with CSS is more scalable than using style= on each HTML tag that you want to style


II. You can create styles with CSS that are not possible using style= on an HTML tag

I only

II only

I and II

Neither

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels?

<img style="height:200px;">

tag="img" {

height: 200px;

}

<img> {

height: 200px;

}

img {

height: 200px;

}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have the following CSS rules:


p {

color: green;

}

.fire {

color: red;

}

#title {

color: blue;

}

What font color will the following HTML element have after being styled by the given CSS:

<h1 class="fire">Welcome!</h1>

red

green

blue

black

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have the following CSS rules:


p {

color: green;

}

.fire {

color: red;

}

#title {

color: blue;

}

What font color will the following HTML element have after being styled by the given CSS:

<p class="title">My First Paragraph</p>

red

green

blue

black

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have the following CSS rules:


p {

color: green;

}

.fire {

color: red;

}

#title {

color: blue;

}

What font color will the following HTML element have after being styled by the given CSS:

<p class="fire" id="title">Hello World!</p>

red

green

blue

black