I'm a beginner in CSS can you please
About selector explain it.
For further actions, you may consider blocking this person and/or reporting abuse
I'm a beginner in CSS can you please
About selector explain it.
For further actions, you may consider blocking this person and/or reporting abuse
Coffey Gravesen -
Mitchell -
Ditlevsen Donahue -
Brian Omondi Amol -
Top comments (1)
CSS takes the structural elements of a web page (defined in your HTML) and applies styling to them.
To do this, CSS uses selectors and effects.
An effect is a visual description of the element - it might be the colour of something, the position of something, it's size etc.
The selector is how you determine which element you're describing with the effects. For example, you might want to style the third heading to have blue text so you'd do something like this:
h2:nth-of-type(3) {
color: blue;
}
h2
is the type of structural element whereasnth-of-type(3)
means that you want to style the third of that type.