Reply to Re: xhtml 1.1 anchor tags in Bobby

Your name:

Reply:


Posted by Harlan Messinger on 05/25/05 17:42

Richard Quick wrote:
> Hi,
>
> xhtml 1.1 doesn't allow the name attribute, so anchor tags should look like
> this:
>
> <a id="anchor"></a>
>
> Bobby seems to think this is an empty link tag, and therefore fails the page
> for having links that don't make sense out of context.
>
> Anyone know a workaround to this?

Don't use <A> at all for this. Assign the ID to the HTML element to
which you actually want HREFs to lead. For example, instead of

<a id="summary"></a>
<h2>Summary</h2>
<p>...</p>

use

<h2 id="summary">Summary</h2>
<p>...</p>

This won't work in prehistoric versions of Netscape and IE, but if
you're determined to use XHTML you probably don't care much whether it
works in those browsers anyway.

[Back to original 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

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