W3C home > Mailing lists > Public > www-validator@w3.org > November 2016

Re: [VE][108] Add Subject Here

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Thu, 17 Nov 2016 23:10:41 +0200
To: kayoweb.info@gmail.com, "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <762608e3-3f2e-90a9-7769-389c3654ee0b@cs.tut.fi>
16.11.2016, 4:45, kayoweb.info@gmail.com wrote:

> Validating http://www.tw-qingteng.com/index.html
>
> Error [108]: "there is no attribute X"
>
> rel=”section1”,  it shows Error [108]: "there is no attribute X"

That’s because the attribute rel is not defined for the <div> element in 
the DTD being used, or in HTML specification for that matter.

> but rel=”section2” is fine

No, error message about it is just suppressed. It is debatable whether 
this is good policy, but surely it would be disturbing to get the same 
error message a hundred times about essentially the same construct repeated.

An undefined attribute has no effect as such, so you should just remove 
them, unless you are using them somehow in styling or in scripting, in 
which case you should use a different attribute instead. Probably a 
class attribute.

Yucca
Received on Thursday, 17 November 2016 21:11:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 21 November 2016 16:46:58 UTC