Other than submit individual web pages for verification on the W3C site, are there any standalone tools that will do this job.
Ideally this would be a visual studio plugin that could catch errors at design time but one that would just take a wep application url running locally would be good.
Open source suggestions would be preferable
In order to validate your code, you have to declare the standard to which it adheres. To describe the HTML standard (the document type declaration, DTD), the file should contain a DOCTYPE declaration (before the HTML code). Here are a few examples (from http://www.htmlhelp.com/tools/validator/doctype.html).
What is W3C Validation? World Wide Web Consortium (W3C) allows internet users to check HTML and XHTML documents for well-formatted markup.
Validator.w3.org is UP and reachable by us.
The W3C Markup Validator is an open source tool, which you can download and use it offline.
On Fedora, do:
yum install w3c-markup-validator
I use the FireFox plugin "HTMLTidy" to do this. When you are testing, you can point Firefox to your dev server (i.e. "http://localhost:52457/...") and it will work as if the site were live.
Also consider setting HTML errors to be raised as compile errors in VS and set your compatibility level/Doctype to XHTML 1.1 Strict to get them all. These settings are under Tools -> Options -> Text Editor -> HTML -> Validation
you could try with tidy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With