concept

inline-style-precedence — CSS reference

A declaration attached directly to an element outranks selector-mapped declarations of equal origin and importance in the same encapsulation context. An author-important rule can beat a normal inline style. An important inline style outranks other author-important selector rules in that context; it is not immune to user/UA important declarations or transitions.

Formal Syntax & Structure

css syntaxcss
<p style="color: #184168">Note</p>

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a,#b {color:#006050!important}</style><body><p id="a" style="color:#184168">Normal inline</p><p id="b" style="color:#184168!important">Important inline</p></body></html>
CSS Reference