Asking about html course

check this coours below from codecademy

the “<5>” is not have “class=destination”, so, why we can selec h5 using “.description h5” in the css ???

sorry a litlte typo, (class=“destination”)

What do you mean by <5>? Do you mean <h5>?

.description h5 does not target h5 class="description" but a h5 with a parent element which has the class “description”.

1 Like

1. Florence, Italy

h2 have a class 'destination' and after that we have a class
in description class have h5.
Top Attractions
you need to set the rule of h5.
1 Like

oh yea,i see, the h5 is the child hehe, thanks man