I am a beginner in the world of html and css. I have two links placed consecutively. In my css file, I have defined classes for a:link
and a:hover
. However, I noticed that the second link is displaying a purple color instead of silver. Both links correctly change to a gold hover color when hovered over. Interestingly, changing the href attribute of the second link from
href="http://*******.blogspot.co.uk/search/label/Past%20Performances"
to href="http://*******.co.uk/search/label/Past%20Performances"
fixes the issue by removing the .blogspot.
part of the url. I tested this in Chrome and did not encounter the same problem.
CSS:
a:link {
color: var(--silver-color);
text-decoration: underline;
}
a:hover {
color: var(--gold-color);
text-decoration: underline;
}
HTML
<a title="Send email to Erica" href="mailto:********@hotmail.co.uk" target="_blank">emailing us</a>.
<a title="Erica's blog page" href="http://********.blogspot.co.uk/search/label/Past%20Performances" target="_blank">Erica's blog</a>