Re: [VE][html5] Add Subject Here

2013-03-20 15:05, mariannanaak@googlemail.com wrote:

> Validating http://baku.inf-d.de/ws12ba70/indext.html
> Error [html5]: "Error Line 54, Column 25: Duplicate ID navigation_main.
>
> |<ul id="navigation_main">|

The id attribute value must be unique within a document. In this case, 
the same value is used several times.

This is one of the most useful checks that validators perform. If an id 
value is not unique, strange things may happen, especially in scripting.

Since the style sheet seems to use #navigation_main, probably with the 
intent that rules are applied all elements with that id, the simplest 
solution is probably to change the id attribute to a class attribute, 
class="navigation_main", and use class selector .navigation_main instead 
of id selector #navigation_main.

Things get more complicated if the id attribute is also used in scripting.

Yucca

Received on Wednesday, 20 March 2013 14:24:49 UTC