W3C home > Mailing lists > Public > www-validator@w3.org > June 2019

Re: Previously passed now errors.

From: Philip Taylor <philip.taylor@westberryhotel.com>
Date: Sat, 1 Jun 2019 17:24:21 +0000
To: Millicent Metzler <m.metzler@fuse.net>, "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <352dd382-f3de-2725-0876-be9808d37e2d@Westberryhotel.Com>
Here is a simple demonstration of the problem :


  1.  [Error]  Line 899<https://validator.w3.org/check?uri=http%3A%2F%2Fwww.idga.net%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices#line-899>, Column 51: document type does not allow element "UL" here; assuming missing "LI" start-tag

        <ul id="ddsubmenu7" class="ddsubmenustyle">

✉<https://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.idga.net%2F;errmsg_id=66#errormsg>

  2.  [Error]  Line 927<https://validator.w3.org/check?uri=http%3A%2F%2Fwww.idga.net%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices#line-927>, Column 15: ID "DDSUBMENU1" already defined

      <ul id="ddsubmenu1" class="ddsubmenustyle">

✉<https://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.idga.net%2F;errmsg_id=141#errormsg>

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).

Thus you have used id="ddsubmenu1" more than once, which is not permitted.
Philip Taylor
--------
Millicent Metzler wrote:

http://www.idga.net/


App. 50 page site <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> previously passed .. now 9 errors each page from drop down menu.  Error:  <ul id="ddsubmenu1" class="ddsubmenustyle">

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

Sorry but I don't understand.  Please help.  Thank you, Millie Metzler
Received on Monday, 3 June 2019 05:22:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:00:09 UTC