You are here: Re: Using id or name? « HTML « IT news, forums, messages
Re: Using id or name?

Posted by Jukka K. Korpela on 02/06/06 00:53

John Salerno <johnjsal@NOSPAMgmail.com> wrote:

> Ok, so in the case of creating an image map, using just id is okay?

Oh, that belongs to the tricky part. Using just name is okay.

I must admit that I don't know the details of the current browser
situation in support to using just id in <map>. But support to name is
surely at least as good, so you win nothing by using id. The situation
is different in normal linking, since you _can_ win in conciseness:
compare <h2 id="foo">...</h2> with <h2><a name="foo">...</a></h2>.

(XHTML 1.1 is particularly absurd here, disallowing name, making id
required, and requiring <map> elements to identifiers without "#",
thereby making the page fail on existing browsers.)

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

 

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

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