I cant link my <div> to a site


#1

<!DOCTYPE html>
<html>
	<head>
		<title>Result</title>
	</head>
	<body>
		<div style="width:50px; height:50px; background-color:red"></div>
		<div style="width:50px; height:50px; background-color:blue"></div>
	<a href=https://www.google.com><div style="width:50px; height:50px; background-color:green"></div></a>
		<div style="width:50px; height:50px; background-color:yellow"></div>
	
	</body>
</html>

#2

Did you formated your whole code because i con only see your ending body tag.


#3

you mean you can't pass the exercise or the link doesn't work? You need "" around your url

for next time, use one of the two following options to make your code/indent visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard


#4

thank you.It turns out that I forgot the "' around my URL.