Learn Basic CSS by Building a Cafe Menu - Step 62

The typography of heading elements (e.g. h1, h2) is set by default values of users’ browsers.

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.

code dosen not work!! What is the problem???
.h1,h2 {
font-size: 40px, 30px;

You can’t make one CSS rule specifying two completely different behaviors, as far as I know

how can do this task then?

Make two separate CSS rules? I’m guessing since I don’t have a link to the Step.

Yep, two new CSS rules, each with its own selector

but the compiler dosn´t aloow me go forward and show me a error msg!!!


Make rules for the elements without . in front of them.

you wrote: .h1 and the correct way is h1



This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.