37
loading...
This website collects cookies to deliver better user experience
/* style.css */
p {
color: red;
}
p {
color: purple;
}
<head>
<link src="stylesheet" src="style.css" />
<style>
p {
color: blue;
}
</style>
</head>
<body>
<p style="color:green">lore ipsum</p>
</body>
<head>
<style>
div p {
color: red;
}
p {
color: purple;
}
</style>
</head>
<body>
<div>
<p>lorem ipsum</p>
</div>
</body>
!important
rule being applied.!important
rule is applied.!important
) > Local User Styles (!important
) > Authored CSS (!important
)!important
rule is the most preferred while the basic user agent styles are least preferred. Everything else comes in between.Although all CSS rules are created equal, some rules are created more equal than others.
transition: margin-right 2s;
!important
rulesfont-size
, color
, etc