This page describes an easy way to validate HTML documents using CSS HTML Validator and Firefox. Some options are now legacy options that no longer work but are included for reference.
CSS HTML Validator for Windows is a desktop software application that provides one-click checking of HTML, CSS, SEO, spelling, accessibility, mobility (Android/iOS), JavaScript, and links.
See also: Validating a DOM with Google Chrome.
This option allows you to use Firefox's View Source command to open the source in CSS HTML Validator's Editor. Note that this will not let you check the source generated from a live DOM.
about:config
view_source.editor.external
to true
view_source.editor.path
to (adjust the path for your version/system): C:\Program Files\HTMLValidator230\cmdlineprocessor.exe
view_source.editor.args
to: -o
Unfortunately, the Firefox-based options below are currently outdated and do not work with current versions of Firefox. We have kept the outdated options below in case they are still useful for any reason and for reference.
If you find another solution then please let us know. For now, see Validating a DOM with Google Chrome.
The Firefox Easy Copy add-on extension by Byron (no longer available) can be used to quickly copy the HTML source of a web page (generated from the current state of the DOM) to the clipboard by selecting its Easy Copy > HTML Source menu option. When the document source is copied to the clipboard, CSS HTML Validator can automatically detect it, paste the clipboard text into a new document, and validate it.
Run CSS HTML Validator and then go to the Editor Options (Ctrl+F3) and select the Clipboard options page. Enable the option to Watch the clipboard for HTML documents. You may also want to enable other options like the Auto validate documents from the clipboard option.
TEST IT (v17+): If CSS HTML Validator is running and the option to watch the clipboard is checked, then CSS HTML Validator should automatically open a new document with the line "Success" when you copy the below line to the clipboard.
<cseclip url="http://test.domain.com ">Success
Take advantage of the special cseclip tag in v17+ by setting the template for HTML Source to:
<cseclip url="%page_url%">%html_source%
The template can be changed in the Easy Copy Options dialog (Easy Copy > Options). This will allow for better recognition of HTML in the clipboard and for link checking of relative URLs (because the absolute path can be computed).
If you're using the cseclip tag, then you may want to enable Limit to only documents starting with the special cseclip tag in the Clipboard page of the Editor Options (Ctrl+F3). Using this option can prevent CSS HTML Validator from opening unwanted clipboard text that would otherwise be recognized as a document and opened in a new tab.
You can setup a new menu item specifically for CSS HTML Validator by clicking the New button in the Easy Copy Options dialog (Easy Copy > Options). See the screenshot below.
The Firefox Html Validator add-on extension by Marc Gueury (new window) supports recent versions of CSS HTML Validator (v10.02 or greater, any edition). In the Html Validator add-on's options dialog, choose CSE HTML Validator for the Algorithm (highlighted in the screen shot). View the page source to see the validation results.