Very newbie question.
For instance, is this okay?
<a href="allaboutpeanuts.html">Peanuts<img src="peanut.jpg"> </a>
I tried it and it works fine, but I’ve been googling around and I can’t find any mention of anyone putting more than one element in an a href. So are you not actually supposed to do that, but I cheated, so it’s sort of a hack?
Yes, absolutely. HTML tags can be nested in any combination and any number.
The main rule is that they must nest properly. So this is not valid:
The
h1tag is not completely inside theatag.This, however, is entirely valid: