I think you can use inherit
here to save setting the same color etc twice.
Links have default colors depending on their states which have to be overridden.
h2 {
color: green;
text-align: right;
border: 2px solid purple;
text-decoration: none;
}
h2 a {
color: inherit;
text-decoration: inherit;
}
<h2><a href="#">Sign in</a></h2>
or even...currentColor
..
h2 {
color: green;
text-align: right;
border: 2px solid purple;
text-decoration: none;
}
h2 a {
color: currentColor;
text-decoration: inherit;
}
<h2><a href="#">Sign in</a></h2>