The styles for the links in the <ul>
are specified in the <style>
, but they are not being applied and the links are appearing in their default format.
header {
text-align: center;
border: 5px solid yellow;
background-color: pink;
font-family: cursive;
margin: 5px;
}
a:link a:visited {
text-decoration: none;
font-size: 40px;
background-color: turquoise;
color: red;
border: 2px solid tomato;
margin: 5px;
font-weight: bold;
font-style: italic;
font-family: cursive;
}
a:hover {
background-color: orange;
color: green;
border: 3px solid tomato;
}
a:active {
background-color: green;
border: 10px solid tomato;
color: blue;
}
<header>HTML OMG</header>
<ul>
<li><a href="www.google.co.in" title="Link to Google" target="_blank">Google</a></li>
<li><a href="www.facebook.com" title="Link to Facebook" target="_blank">Facebook</a></li>
<li><a href="www.instagram.com" title="Link to Instagram" target="_blank">Instagram</a></li>
<li><a href="www.youtube.com" title="Link to Youtube" target="_blank">Youtube</a></li>
<li><a href="www.twitter.com" title="Link to Twitter" target="_blank">Twitter</a></li>
</ul>
I have confirmed that the CSS is correct, but the result looks like this - https://i.sstatic.net/B5MkY.png. As I am new to HTML and CSS, this is causing me some confusion.