tags:

views:

322

answers:

3

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.

A: 

HTML Tidy is the defacto tool for this.

sebasgo
+12  A: 

HTML tidy is a great tool for X/HTML validation

The W3C's CSS validator is also available for download

This tool claims to do offline CSS validation

Elijah
Tidy is great, but I need a tool for CSS as well.
Michael Mior
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
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
A: 

I'm a big fan of Tidy: http://tidy.sourceforge.net/.

thedz