A CSS rule-set consists of a selector and a declaration block:
A Selector is any HTML element we want to style, like
This block contains the different properties and their values which we
want to change in the selector element. Example : -
A Property is kind of a quality of any HTML element like
etc. which will change the appearance and style of it.
Every CSS property has a value which will give different results for a particular property.
In the above example, value
is assigned to
<title> CSS Selector </title>
<p> Hello World! </p>
<p> This is a simple example of CSS. </p>
CSS Selector Example
This is a simple example of CSS.