<a> <div></div> </a>

I’m trying to turn my yellow square into a link to google, but something is wrong with the code. Any help?

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

Try removing the quotation marks around yellow

Voila! That made me realize I had unnecessary quotations before div style, as well. Thanks!

1 Like