CSS - HTML Styling Quiz

CSS - HTML Styling Quiz

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

10 класс повторение CSS and Внедрение мультимедиа

10 класс повторение CSS and Внедрение мультимедиа

10th Grade

10 Qs

Quiz 9 (15.09.2021)

Quiz 9 (15.09.2021)

1st - 12th Grade

10 Qs

Kuis DDG pengenalan corel

Kuis DDG pengenalan corel

11th Grade

20 Qs

HTML - podstawy

HTML - podstawy

9th Grade

18 Qs

Cascading Style Sheets

Cascading Style Sheets

8th - 12th Grade

11 Qs

Online Platform Block Q

Online Platform Block Q

11th - 12th Grade

20 Qs

EMPTECH L4 Q2

EMPTECH L4 Q2

12th Grade

10 Qs

Espacio Opcional 3er Año Pío XII

Espacio Opcional 3er Año Pío XII

10th Grade

10 Qs

CSS - HTML Styling Quiz

CSS - HTML Styling Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Jennifer Hunt

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use CSS?

  • HTML wasn’t intended to be able to style web pages, CSS allows us to add style

  • Separate the content of a web page from the design of a web page

  • Easily modify the look and feel of a web site even at a large scale

  • All of these are correct

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid CSS rule?

h1 { color: blue; }

style="color:blue;"

css="color:blue;"

h1 {

color {

blue;

}

}

3.

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;

}

Answer explanation

For this, we use a CSS rule to select all img tags and set their height.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following code snippets will select all HTML elements with the class “alert” and set their color to be red?

alert {

color: red;

}

.alert {

color: red;

}

#alert {

color: red;

}

class="alert" {

color: red;

}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following CSS rules will select the HTML element with the id logo and set the font size for that element to 60 pixels?

logo {

font-size: 60px;

}

.logo {

font-size: 60px;

}

#logo {

font-size: 60px;

}

id="logo" {

font-size: 60px;

}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the Cascade in CSS?

The Cascade is a set of guidelines to make your site look beautiful.

The Cascade helps you write styling for your websites quickly by providing easy templates to use.

The Cascade determines which CSS rules will be applied when multiple rules for an item are contradictory.

The Cascade will make sure there are no typos in your CSS rules.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: In the case that two conflicting rules have the same order and specificity, the rule that is written first will be applied.

TRUE

FALSE

Answer explanation

  1. In the case that two conflicting rules have the same order and specificity, the rule that is written later will be applied.

Create a free account and access millions of resources

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?