Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

you are building a website and have assigned one of the paragraph eleme…

Question

you are building a website and have assigned one of the paragraph elements to a class called sale. which css selector should you use in your stylesheet to define this class? o o o o p class: sale #sale .sale p{name=\sale\}

Explanation:

Brief Explanations

In CSS, class selectors are denoted by a dot (.). The # is for ID selectors. p class: sale is an incorrect syntax. p{name = "sale"} is also not a valid CSS selector for a class. So the correct way to select a class named sale in CSS is .sale.

Answer:

.sale