I’ve got an error in my code, it won’t validate, I think it is because I have a div inside of an anchor, not sure though.
here is the error:
Line 141, Column 36: document type does not allow element “div” here; missing one of “object”, “applet”, “map”, “iframe”, “button”, “ins”, “del” start-tag
<div id="box4">
The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as “<p>” or “<table>”) inside an inline element (such as “<a>”, “<span>”, or “<font>”).
here is my code:
<a href=“fitnesscoaching.html#dest_packages”>
<div id=“box4”>
<p>Physical Activity Counselling and Evaluation, Physical Goal Planner<br/><span>+</span> more</p>
</div>
</a>