CSS Selector

By [)ia6l0 iii

A Selector in CSS define or select the html elements that the CSS rules apply for.

It follows the below syntax:
Selector {property : value;}

div { padding: 10em;}

Selector are html elements, properties can be html element attributes.

Related FAQs

Below is a short list of the advantages of using Inline Styles
Use the link attribute to link a style sheet to your web page
Below is a short list of disadvantages of using inline styles
An inline style is applied through the "Style" attribute to the element.
You might use more than one rule through CSS on a single element. In such cases, you might as well like to define the precedence order on the rules.
You can use apply more than one class to an Element at the same time.
CSS Selector  (744 Views)