Google News
logo
CSS - Interview Questions
Define ‘important’ declarations used in CSS.
Important declarations are defined as that declaration which is having more importance than the normal declaration.
 
While executing, these declarations override the declaration which is having less importance.
 
For example, if there are two users having an important declaration then one of the declarations will override the declaration of another user.
 
For Example :

Body {background: #FF00FF !important; color: blue}
 
In this body, background has more weight than the color.
Advertisement