What is CSS Selectors?


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.

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