Exercise :5 : multiple element selector


#1


I just do not understand what to do in exercise 5 of CSS Structure Syntax ..
My code as a trial was

h1, p {
  color: DarkSlateGray;
}
h1 {
  color:firebrick; font-size:36px;
  
}
p {
  font-size:18px;
}

but this went wrong why?
what"s the right code ?


#2

@alizarahoo can you post the link to your exercise?


#3

" https://www.codecademy.com/courses/learn-html-css/lessons/css-structure-syntax/exercises/multiple-element-selectors "


#4

You have this which is correct:

then you went and overwrote the h1 color when you added this:

Remove color from the send h1 selector


#5

@alizarahoo are you satisfied with the explanation below, or do you want another explanation? :slight_smile:


#6

Thanks ... it helped me ...


#7