5.Adding the link


#1


5. Adding the link

Please help me! I have tried to find what's wrong with my code, but I still can't find it.
These are the message after I press "Save & Submit Code"

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

I did change it, but it still shows me the same message, Can anyone help me??

These are my code:

html

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>About Me</title>
	</head>
	<body>
		<img src="https://s3.amazonaws.com/codecademy-blog/assets/46838757.png"/>
		<p>We're Codecademy! We're here to help you learn to code.</p><br/><br/>
		<div>
		    <a href="http://www.google.com">Come and try to Google yourself!</a>	
		</div>
	</Body>
</html>

CSS

img {
	display: block;
	height: 100px;
	width: 300px;
	margin: auto;
}

p {
	text-align: center;
	font-family: Garamond, serif;
	font-size: 18px;
}

div {
    height:50px;
    width:120px;
    border-color:#6495ED;
    background-color:#BCD2EE;
    border-radius:5px;
    margin:auto;
    text-align:center;
    text-decoration:none;
    color:blue;
    font-family: normal;
}

#2

To make your link's text-decoration: none, write:

a {
text-decoration: none;
}

#3

Ohh it works!!! Thank you very much for your support!! Mohamadbahas~ :hugging:


#4

Why can't it work in his original CSS?
Or isit because works for text related changes and

does not? Since div works for background, margins, etc.. but then again, it works for font-family..


#5

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