I'd like to find a command-line tool for Linux that will validate both XHTML and CSS. As silly as this may sound, I'd like it to be able to operate offline.
+12
A:
HTML tidy is a great tool for X/HTML validation
- There is a Windows GUI available for tidy.
- Tidy's sourceforge page is here.
- For plain-old XHTML or XML validation you can use any XML editor with a validator. Or a simple tool like xmlstartlet.
The W3C's CSS validator is also available for download
This tool claims to do offline CSS validation
Elijah
2009-07-22 18:45:48
Tidy is great, but I need a tool for CSS as well.
Michael Mior
2009-07-22 18:53:24
Thanks, I had heard the W3C CSS validator could be run offline, but the link that I found previously was to a version that didn't work.
Michael Mior
2009-07-22 19:33:53
What I have done in the past as a last-resort for CSS validation was to upload my CSS to the W3C site. I know that doesn't help when you have no internet - but it is a good enough solution when you are working with files that are on an intranet.
Elijah
2009-07-22 20:26:36