HTML Basics III: 12. Wrapping the <div> in <a>


#1

Hey there. Can someone tell me please what I have done wrong with tagging? This is what I have atm.

<a href="https://www.facebook.com">
<div style="width:50px; height:50px; background-color:yellow"></div>
</a>

#2

Hey,

You have it the apposite,

You need you a tags inside the div.. > </div>


#3

But the example says it should be this way.


#4

Can you give me the link to the lesson


#5

https://www.codecademy.com/en/courses/web-beginner-en-f8mcL/2/2?curriculum_id=50579fb998b470000202dc8b#


#6

I'm sorry I misread your question the first time.. You code is fine.. What error are you getting?


#7

Oh strange, maybe it's just my computer. No error but when I click the yellow square it doesn't work. Only works if I 'Right click' then 'Open link in new tab'. Just wanted to make sure it was correct.


#8

Not your computer, links don't open in the preview window


#9

Ahh ok. Good to know. Thanks heaps.


#10

as long as you can see its clickable and CodeCademy passes you than you good..


#11

i got the same problem with u, anybody can help me?


#12

Please create a +New Topic
With code, error and lesson


#13