Search Header Logo

CSS Selectors Basics

Authored by Richard Ghiorse

Computers

9th - 12th Grade

Used 2+ times

CSS Selectors Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

4 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for making a CSS block for an id called fancy?

#fancy {

}

.fancy {

}

id fancy {

}

id#fancy{

}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the following is the correct syntax for making a CSS block for a class called someclass?

.someclass {

}

#someclass {

}

class someclass{

}

class.someclass{

}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following has correct HTML code that applies the id someid to an h1 tag?

<h1 id="someid">Heading</h1>

<h1 someid>Heading</h1>

<h1 #someid>Heading</h1>

<h1 "someid">Heading</h1>

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following has correct HTML code for using the class someclass with an img tag?

<img class="someclass" src="somepic.png"/>

<img "someclass" src="somepic.png"/>

<img class="someclass" >src="somepic.png"</img>

<img class.someclass src="somepic.png"/>

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?