168k views
5 votes
Identify the selector in the following CSS code:

h3 {
color: orange;
font-size: 12 px;
}

A.
h3
B.
color
C.
font-size
D.
px

User Episage
by
7.7k points

1 Answer

5 votes

Answer:

The right answer is: Option A. h3

Step-by-step explanation:

The purpose of using selectors in CSS is to find the elements in the HTML page to which the formatting will be applied.

Different type of selectors are used in CSS.

In the given code, h3 is the selector.

All the <h3> elements on the page will be of orange color and will have font size 12.

Hence,

The right answer is: Option A. h3

User Jigar Shah
by
7.8k points