What is CSS Selectors?

css

We can target a specific element or group of elements using CSS Selector and can apply a set of styles to it using-declaration block as shown below.

1
2
3
4
p {
font-family : helvetica;
font-size : 12px;
}

Here p is a CSS Selector that selects all paragraph in the document and apply properties defined inside a declaration block.

Share and support us

Share on social media and help us reach more people