Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML validation issue

Status
Not open for further replies.

elebee

Technical User
Joined
Jul 8, 2005
Messages
23
Location
GB
Hi Guys,

Im a bit of a beginner when it comnes to validation.

Here's my problem.

Im trying to validate this page

Im getting faild validation results because where im using div #lbut more than once it gives the following error:

ID "lbut" already defined

I understand what its saying but how do i solve this problem wuthout repeating the DIV.

Thanks for any advice

Eleeeee B
 
Do repeat the div, just don't repeat the id. IDs are unique and can be used but once on a page. Use classes for defining objects that need to be repeated on the page many times. Check FoamCow's replies in this thread for more information on ids and classes:
 
Thanks Vragabond,

all sorted now, checked out FOAMCOWS replies.

I now GET IT!

Eleee Bbbbb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top