Add an href to the finished code


#1

I want to add a different href to each individual circle? Where do I need to insert the code?







	<div class="friend" id="best_friend"></div>
	<div class="family"></div>
	<div class="enemy" id="archnemesis"></div>

</body>


#3

@jibblyj What's with the <a> tag inside the <div> tag?


#4

I don't know... I'm used to it :confused:

Removed it.


#5

Well, one other thing: you can't have a href on any element other than an <a>. It's been considered, allowing all tags to have a href, but it's not valid and won't work.

Sorry for nitpicking your code, I hope you don't mind too much :smile:


#6

To make the entire circle clickable:

<a href="#"><div class="..." id="...">...</div></a>

to make just the text clickable:

<div class="..." id="..."><a href="#">...</a></div>

#7

Thank you, that worked fine. Very simple.