I am struggling with setting the highest priority for the background of the <h1>
element. Specifically, I want the background color specified for the <h1>
to show instead of what is specified for the <a>
element.
h1{
background-color:blue1!important
}
Unfortunately, this doesn't seem to work in the following context:
<!DOCTYPE html>
<html>
<style>
a{
background-color:red
}
h1{
background-color:blue
}
</style>
<body>
<h1><a>My First Heading</a></h1>
<p>My first paragraph.</p>
</body>
</html>
I would greatly appreciate any assistance or advice on this matter.