Page 1 of 1

Valid HTML Links

Posted: Wed Dec 07, 2005 11:48 am
by Russ
Does any one know how you can put a 'Validate HTML' link in the template to provide a link on each page to to click and validate that page against the W3C validator?

Somehting like:
">Valid XHTML 1.0 Strict

Thanks in advance,
Russ

Re: Valid HTML Links

Posted: Wed Dec 07, 2005 1:22 pm
by melix
You could add the following to your template :

Code: Select all

<a title="Valid XHTML 1.0 STRICT - click to test" href="http://validator.w3.org/check?uri=http://{$smarty.server.HTTP_HOST}{$smarty.server.PHP_SELF}">Valid XHTML 1.0 Strict</a>

Re: Valid HTML Links

Posted: Wed Dec 07, 2005 2:32 pm
by arl
Or even easier: Valid XHTML 1.0 Strict

Allan

Re: Valid HTML Links

Posted: Wed Dec 07, 2005 3:02 pm
by Russ
Thanks to you both for you quick replies  ;)

I presume there is the same sort of thing for validating CCS and Accessibility? Does anyone have the code?

Many thanks again,

Russ

Re: Valid HTML Links

Posted: Wed Dec 07, 2005 3:07 pm
by westis
Russ,

Look here for the validator for CSS: http://jigsaw.w3.org/css-validator/

There is also the WebXACT (formerly Bobby) validator: http://webxact.watchfire.com/

Re: Valid HTML Links

Posted: Thu Dec 08, 2005 6:39 am
by Russ
Thanks again :) I may be having one of those very dumb moments but I can't seem to get the CSS validator to work as a link on a page for that pages CSS ?

Russ

Re: Valid HTML Links

Posted: Thu Dec 08, 2005 7:02 am
by westis
I haven't tried it myself, but it should be something like Valid CSS


EDIT: Hmm, actually forget that. It needs more paramaters to the link. Hope you'll be able to get it working. :)

Re: Valid HTML Links

Posted: Thu Dec 08, 2005 1:39 pm
by alby
westis wrote: I haven't tried it myself, but it should be something like Valid CSS
"referer" is the URL address of page, for example (this page):
http://jigsaw.w3.org/css-validator/vali ... 372.0.html

Or better  ::):
http://jigsaw.w3.org/css-validator/check/referer

Alby

Re: Valid HTML Links

Posted: Fri Dec 16, 2005 6:28 am
by RussB
Thank you again for your replies, they both work fine now. It's a bit of a pity we can't do the same for accessibiity testing know that the automated Bobby tests site has changed into a site where you have to enter the url. (I realise that automated testing is only part of the story.)


Thanks again,

Russ

Re: Valid HTML Links

Posted: Fri Dec 16, 2005 8:02 am
by cyberman
Please look here - there you get the code for including the bobbytest on your site  ;) ...

Re: Valid HTML Links

Posted: Sat Dec 17, 2005 7:05 am
by Russ
Thanks cyberman, with a bit of modification that will do nicely :)

Russ