CSS Selectors Quiz

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Write a CSS id selector for the following HTML code. <div id="content" class="blue"> __________

#content

What type of selector is used to link a CSS rule to only those HTML elements that have a particular class?

class

Write a CSS element selector for the following HTML code. <div id="content" class="blue"> ______________

div

What type of selector is used to link a CSS rule to a specific HTML element?

element

What type of selector is used to link a CSS rule to only those HTML elements that have a particular id?

id

Write a CSS class selector for the following HTML code. <div id="content" class="blue"> _____________

.blue

A CSS descendant selector allows you to select an HTML element that is nested inside another HTML element. Which CSS selector would correctly select the most important heading level in the main section of the webpage? (See code below.) <header> <h1>Company Name</h1> </header> <main> <h1>Welcome</h1> <p>Welcome to my awesome website!</p> </main>

#main h1

In CSS, you cannot select more than one HTML elements at a time.

False


Set pelajaran terkait

Фразеологізми до НМТ

View Set

Biology Unit 8 - The Amazing Human

View Set

In-n-Out and the Cells ANALOGIES

View Set

Кримінальне право. Загальна частина Модуль

View Set

The Revolution's End and Impact 2: The American Revolution

View Set