|
Posted by Harlan Messinger on 01/20/08 22:28
Dave Kelly wrote:
> Looks like ' <a name=> has been deprecated. What do I substitute in
> their place.
Just give an id to the element that begins where you want the anchor.
<h2 id="foobar">Foo and Bar</h2>
>
> Here for complete document. www.texasflyfishers.org/2col.html
>
> Validation Output: 2 Errors
>
> 1. Error Line 93, Column 13: document type does not allow element
> "A" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6",
> "PRE", "DIV", "ADDRESS" start-tag.
>
> <a name="top"></a>
>
>
> 2. Error Line 109, Column 35: document type does not allow element
> "H1" here; missing one of "OBJECT", "MAP", "BUTTON" start-tag.
>
> <a name="madagordadragonfly1"><h1>Matagorda Dragon Fly 1</h1></
> a>
It was never OK to put a heading inside an A element. Only inline
content can be inside an A; a heading is a block element. The proper
earlier approach was
<h1><a name="madagordadragonfly1"></a>Matagorda Dragon Fly 1</h1>
[Back to original message]
|