CodeWithHarry

in Above Paragraph we used 2-p elements in which we are used !important property and in which we apply simple styles without important. so do you think why we used important proprty?

Actually we used !important property to tell the the css this is the important style and in css wherever we put important than the css specificity value will be "10000" wihc is more than any css selectors properties or inline property.

Universal Selector * Specificity Value (0)

Element Selector h1 Specificity Value (1)

Class Selector .h1,p Specificity Value (10)

Id Selector #title Specificity Value (100)

Inline Style Specificity Value (1000)

!importance Property Specificity Value (10,000)