Lesson 8 ul = li p?

Why i cant write
ul{
color:#000000;
text-decoration: underline;
}
instead
li p{
color:#000000;
text-decoration: underline;
}

ul contains li and p and nothing else so when i put those values for ul it embrace li and p inside so what is the difference?

1 Like
ul{
  color:#000000; 
  text-decoration: underline;
}

would work normally, but the exercise wants you to specify the paragraph (p), so that is the only difference

1 Like