HTML Introduction to HTML and CSS Make It Beautiful With CSS Select and Style Multiple Elements by Class

Giorgio Aivazopoulos
Giorgio Aivazopoulos
487 Points

Hi! why if in the html file I indicate class="skills" in the CSS file I need to write .skills li?

so I need to indicate also that the CSS code refers to the list item and not just to the class "skills"?

I tried to remove li from the css but it does no work well.

thanks!

Gavin Eyquem
seal-mask
.a{fill-rule:evenodd;}techdegree
Gavin Eyquem
Front End Web Development Techdegree Student 16,301 Points

If you are trying to style the list item in the .skills class then type .skills li {}

To change the li, you need to tell the system to target the li of the class .skills

Hope that helps.

1 Answer