26/26 Links and text decoration


#1

<!DOCTYPE html>
<html>
	<head>
	    <link type="text/css" rel="stylesheet" href="stylesheet.css" />
		<title>Result</title>
	</head>
	<body>
	    <h1>Nicky55992</h1>
	    <p>I'm 15 yrs old. Love coding, gaming, and volleyball.</p>
	    <h3>Made with</h3>
	    <a href=codecademy.com><img src=http://bit.ly/NnVbxt /></a>
	</body>
</html>

h1 {
    font-family: Verdana, sans-serif;
    color: #576d94;
}
p {
    font-size: 18px
    font-family: Garamond, serif;
    color: #4a4943;
}
h3 {
    font-family: cursive;
    color: blue;
}
img {
    height: 100px;
    width: 300px;
    border: 1px solid #4682b4
}
a {
    text-decoration: none;
    color: #cc0000;
}

Here's my code. Keep getting an error saying "Oops, try again. Did you remember to give your link a 'href' attribute?" Any help is appreciated. Thank you!


#2

You forgot to surround your URL and src attributes in quotation marks like this:
<a href="codecademy.com"><img src="http://bit.ly/NnVbxt /></a&gt";

You forgot the semicolon for the border styling.

And you also forgot the semicolon for the first p styling.

Hope this helped :slight_smile:


#3

In that line. Put the href and src in quotes. Like this:

<a href="codecademy.com"><img src="http://bit.ly/NnVbxt" /></a>


#4

Wow thank you so much! I didn't realize that actually made a difference :sweat_smile:
I really appreciate your help.


#5

And I'm glad to help :slight_smile: Good luck with more coding in the future :slight_smile:


#6

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