joined:Apr 1, 2005
I'm starting to validate my pages, and the validator isn't liking some of my anchor links. It mentions something about block-level and inline elements, and I'm not sure what those are. Would someone explain what block-level and inline elements are.
Below is an example.
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<a class="e" href="../020_e_1/010_shelter.htm">
And I'm getting the error message:
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>").