HTML&CSS Lesson 26 CSS: An Overview will not accept my answer


#1

I have been trying to get this code for about 45 minutes I have looked through the forums for help and found none that helped me.

My HTML Code:

<!DOCTYPE html>
<html>
	<head>
		<title>Result</title>
		<link type ='text/css' href="stylesheet.css" rel='stylesheet'>
	</head>
	<body>
	<h1>Stuff</h1>
	<p>More stuff</p>
	<a href="url">Link text</a>
	<img src="http://bit.ly/NnVbxt">
	</body>
</html>

My CSS Code:

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;
}

a {
    text-decoration: none;
    color: #cc0000;
}

The error:

Oops, try again. Did you remember to set your link's text-decoration to none;?

As you can see I did set my text-decoration to none and still cannot get the code to submit without this error. Thanks for any help you can give!


#2

can you please also post the instructions?


#3

Links and text decoration
Great work! We’re almost there.

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.
You’re done! Revel in the glory of your newfound CSS knowledge for a moment, then head on to the project.


#4

thanks for posting them.


#5

did you check the hint?
also, maybe it has to be a legit url.
try that.


#6

i think this will help:
you wrote: a{


maybe try: link text{


hope it helps


#7

I have also experienced this problem just tried using different names like link text or link and it still is giving me the error


#8

So using link text did nothing and using an legit url did nothing to change its error message


#9

also there is no hint button


#10

Do you use Chrome as browser?


#11

yes i do use chrome as my browser


#12

Try a different browser. I remember chrome can give issues at certain parts


#13

Hi @samsung03m, @forcercn

I’m just guessing the lesson you’re referring to (as there’s no link provided in the topic), that particular track you’re facing problem is not maintained anymore, therefore, it’s buggy at times. However, if you still want to complete that lesson, you may try changing your browser using Firefox as per the answer I suggested in this topic here:

It seemed to work for others as well.


Nonetheless, I do recommend to try out the latest tracks for learning HTML and CSS here:
https://www.codecademy.com/learn/learn-html
https://www.codecademy.com/learn/learn-css

These are the latest ones and recently published tracks.

Happy Coding! :slight_smile:


#14

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.