H1,H2 selectors

I need to add two new type selectors (h1 and h2). Use the Font-size property for both, but use the value 40px for the h1 and 30px for the h2.

The two below do not work:

(1)
.h1,h2 {
Font-size: 40px, 30px;
}

(2)
h1 {
Font-size: 40px;
}
h2 {
Font-size: 30px;
}

Welcome to the forum @Cjay1348

Please post the link to the step if it is for a fCC challenge.

(2) and (3) should fulfil the requirements, but you will need to use font-size, without the capitalisation, for the property.

Happy coding

1 Like

is h1 a class name?

1 Like