CSS - Styling Websites Quiz

CSS - Styling Websites Quiz

11th Grade

6 Qs

quiz-placeholder

Similar activities

Comprensión Lectora

Comprensión Lectora

1st - 12th Grade

10 Qs

SQL WILDCARDS

SQL WILDCARDS

10th - 12th Grade

9 Qs

Kelas Xl ( CSS 1-3 )

Kelas Xl ( CSS 1-3 )

11th Grade

10 Qs

EmTech Q1 Pre-Test 4

EmTech Q1 Pre-Test 4

11th Grade

10 Qs

QUIZ 1 (HTML DASAR)

QUIZ 1 (HTML DASAR)

11th Grade

10 Qs

CSS Quiz 4

CSS Quiz 4

9th - 12th Grade

10 Qs

Spike Prime Color sensor

Spike Prime Color sensor

7th - 12th Grade

10 Qs

Interactive Media

Interactive Media

10th - 11th Grade

10 Qs

CSS - Styling Websites Quiz

CSS - Styling Websites Quiz

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Spartan Coders

Used 110+ times

FREE Resource

AI

Enhance your content in a minute

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

6 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

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

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 I nor II

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;

}

5.

MULTIPLE CHOICE QUESTION

45 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>

green

Notes: Not quite! Since the tag has the class “fire” it will be styled according to the second rule, giving it the color red.

red

Notes: Correct! Since the tag has the class “fire” it will be styled according to the second rule, giving it the color red.

black

Notes: Not quite! Since the tag has the class “fire” it will be styled according to the second rule, giving it the color red.

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>

blue

green

black

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?