Hi,
I enrol myself in HTML & CSS. So far it was going good but I’m stuck at lesson number 26, “Links and Text Decoration”. Although, it is very simple and I did all things which are being asked in the instructions but it still saying “Oops, try again. Did you remember to set your link’s text-decoration to none;?”. For ready reference, I’m pasting the Instructions, HTML code, and stylesheet.css code below. I’d appreciate if someone will help me and tell if I’m not fulfilling the requirements correctly. Thanks.
Instructions:
-
Add a link to your HTML page using Link text tags (check the Hint if you need a reminder). You can link to any webpage.
-
On the CSS tab, change your link’s text-decoration to none and its color to #cc0000.
HTML Code:
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title>Result</title>
</head>
<body>
<h1>This is h11</h1>
<p>This is New Para</p>
<img src="https://www.w3schools.com/images/w3schools_green.jpg"/>
<a href="https://www.yahoo.com">Yahoo</a>
</body>
</html>
stylesheet.css Code:
a {
text-decoration: none;
color: #cc0000;
}
h1 {
font-family: Verdana, sans-serif;
color: #576D94;
}
p {
font-size: 18px;
color: #4A4943;
font-family: Garamond, Serif;
}
img {
height: 100px;
width: 300px;
border: 1px solid #4682b4;
}