You are here: ID's only used once? « HTML « IT news, forums, messages
ID's only used once?

Posted by mfunkmann on 03/21/06 20:20

Hello,

I want to make my Homepage completely w3 validator compatible. I fixed
most of the errors but one I can't fix:

Error Line 15 column 10: ID "MENUPOINT" already defined.

<div id="menupoint"><br><a href="index.php?get=2">Contact</a></div>

An "id" is a unique identifier. Each time this attribute is used in a
document it must have a different value. If you are using this
attribute as a hook for style sheets it may be more appropriate to use
classes (which group elements) than id (which are used to identify
exactly one element).

So I have declared all styles in seperate file linked in the head
(<link href="style.css" type=text/css rel=stylesheet>)

a typical entry in this file looks like this:

#menupoint
{
border-bottom: 1px solid #A6A0C7;
}



So how should I replace <div id"..... to get the same result??

Thx

Matthias

 

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

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