This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by DarknessReigns
almost 10 years

CSS Overview 26/26 href attribute?

I am pretty sure i put in the right code for this but i keep getting the “Oops, try again. Did you remember to give your link a ‘href’ attribute?” message help please. Here is my code:

Answer 537d73719c4e9d479a000dc7

0 votes

Permalink

I also put the ending < and > for the h1 and p tags but i forgot to open them sorry

points
Submitted by DarknessReigns
almost 10 years

Answer 537db3b680ff332cdc001463

0 votes

Permalink

<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title>Result</title>
</head>
<body>
<h1>Anything you want</h1>
<p>Any Text You Like</p>
<img src="http://img1.wikia.nocookie.net/__cb20100913124545/fairytail/images/a/ae/Natsu_and_Laxus_clash.jpg" />
<a href="http://youtube.com"> Click here for youtube</a>

</body >
</html >

you forgot the quotes. you had this: <img src=#> <a href=#>text</a>

i am using a hash instead of a link, makes it easier to see.

it should be: <img src="#" /> (if you want to do it correctly, the image tag is self closing) <a href="#">text</a>

the quotes around the hash (which should be an actual link) you forgot them. also check here how to display code on the forum.

points
Submitted by stetim94
almost 10 years

1 comments

DarknessReigns almost 10 years

Thank you very much! It worked :D!!!