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

0 points
Submitted by Emily Manahan
over 8 years

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

Permalink

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>
points
Submitted by akbarbd96
over 8 years