You are here: Re: W3C search does not tell me what to use « HTML « IT news, forums, messages
Re: W3C search does not tell me what to use

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>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация