W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2015

Re: How to validate my HTML5 site?

From: Geoff McLane <ubuntu@geoffair.info>
Date: Fri, 6 Nov 2015 15:48:45 +0100
Message-ID: <CA+PgotK0Nk+J7Kc2C9Lg4-Y7S72e_tnpYbc3qiAN9PKt-YjZfQ@mail.gmail.com>
To: Nikotine Lutritio <nikotine192@hotmail.com>
Cc: "html-tidy@w3.org" <html-tidy@w3.org>
Hi Niko,

Maybe I misunderstand the question, but are you looking for
https://validator.w3.org/ ?

I just put your URL in the address line, and clicked [ Check ], and it
worked for me!

Not sure what you mean by the 'corresponding validator'?

The W3C validator is open source, and there may be others who offer online
validation services, either using that or other sources... and there are
commercial products like https://www.htmlvalidator.com/, and others I am
sure...

But here is 'HTML Tidy', and while tidy 'tidies' your HTML, and outputs
errors, warnings, it is NOT a 'validator' exactly...

I note your index.html page is a single line of html without line breaks,
which is fine, compact even...

Maybe the editor you use to generate this does render it with line breaks,
for human viewing, and only publishes it without them? Or it operates only
in `Design` view, no `Source` view? There does seem at least one space
where normally one would expect a line break...

Your page uses RDFa attributes, like prefix and property, which are
presently **not** supported by Tidy! We are working on the question - see
https://github.com/htacg/tidy-html5/issues/209 - still OPEN! So running
tidy on your page at this time will incorrectly show these as warnings...

Also in running tidy you would need to add the options
`--drop-empty-elements no`, or else tidy will remove the empty u and span
elements, and `--vertical-space auto`, a new option, to output the html in
one line... but like I indicate you do not seem to need Tidy!

Hope this helps...

Regards,
Geoff.
Received on Friday, 6 November 2015 14:49:14 UTC

This archive was generated by hypermail 2.3.1 : Friday, 6 November 2015 14:49:17 UTC