DEV Community

andrea-techprep
andrea-techprep

Posted on

TIL Blog

Today I learned...

With CSS

Universal selector selects all elements of any type.

The universal selector = *

In order to select an HTML element by its class using CSS, a period (.) is placed before the class name.

You can add multiple classes to an HTML element’s class by separating them with a space. This lets us do multiple CSS classes without having to write a custom class for every style combination.

If an HTML element needs to be styled individually, you can give it an ID using the id attribute.

An element’s id can only have a single value, and only be used once per page.

Lots of great information. Excited to see what I will learn tomorrow!

-Andrea R

Top comments (1)

Collapse
 
simontoledano profile image
Simon Toledano

I am team beginner too. We got this! Good luck, Andrea!