This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
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
I also put the ending < and > for the h1 and p tags but i forgot to open them sorry
Answer 537db3b680ff332cdc001463
0 votes
<!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.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
Thank you very much! It worked :D!!!