This forum is now read-only. Please use our new forums! Go to forums
12/15 <div> between the <a> and </a> tags
What am I missing here? “Oops. Try again. Make sure to put your
between the and tags” I looked at the hint and am still confused. Any help is appreciated.
<a href="http://www.facebook.com"/>
<div style="width:50px; height:50px; background-color:yellow">
<div> </div> </a>
Answer 55e7f10d51b88738cc000272
-1 votes
the problem is that you created two <div>
and close one of them and another <div>
remain opened. keep in mind that <div>
is the opening and </div>
is the closing tag of div. when you type <div>
, you created a div and it would be opened until you close it. so, the best practice is to create the closing tag just after you created the opening tag and then do other work. however, the code will be like this:
<a href="http://www.facebook.com"/>
<div style="width:50px; height:50px; background-color:yellow">
</div>
</a>
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