Validate HTML from console
Tech Notes
Add this to ~/.profile valid () { curl -s $* | xmllint --html --valid - > /dev/null; }
Call it like this $ valid http://google.com
A valid page will return nothing. An invalid page will print errors to STDERR
. This is useful for validating local development environments where the W3C Markup Validation Service cannot go.