🌐
W3C
validator.w3.org
The W3C Markup Validation Service
Check the markup (HTML, XHTML, ... Pack 2, see our information page on the W3C QA Website. ... This validator checks the markup validity of Web documents in HTML, XHTML, SMIL, MathML, etc....
W3 Nu Html Checker
This tool is an ongoing experiment in better HTML checking, and its behavior remains subject to change · Show sourceoutlineimage reporterrors & warnings onlycheck error pagesUser-Agent Accept-Language
W3C Feed Validation Service, for Atom and RSS
This is the W3C Feed Validation Service, a free service that checks the syntax of Atom or RSS feeds.
W3 Broken Link Checker
This Link Checker looks for issues in links, anchors and referenced objects in a Web page, CSS style sheet, or recursively on a whole Web site. For best results, it is recommended to first ensure that the documents checked use Valid (X)HTML Markup and CSS. The Link Checker is part of the W3C's ...
validator service by the World Wide Web Consortium
The Markup Validation Service is a validator by the World Wide Web Consortium (W3C) that allows Internet users to check pre-HTML5 HTML and XHTML documents for well-formed markup against a document type … Wikipedia
🌐
W3Schools
w3schools.com › w3css › w3css_validation.asp
W3.CSS Validation
Web Intro Web HTML Web CSS Web JavaScript Web Layout Web Band Web Catering Web Restaurant Web Architect · W3.CSS Examples W3.CSS Demos W3.CSS Templates W3.CSS Certificate ... The W3C CSS Validation Service can be used to check the correctness (validity) of W3.CSS.
🌐
Deque University
dequeuniversity.com › validator
HTML Validator
' "' + doctypeNode.systemId + '"' : '') + '>'; var htmlWrapper = document.documentElement.outerHTML; var allContent = doctypeHtml + htmlWrapper; var validatorForm = document.getElementById('deque-w3c-validator-bookmarklet'); if (validatorForm) { validatorForm.remove(); } var form = document.createElement('form'); form.id = 'deque-w3c-validator-bookmarklet'; form.method = "POST"; form.action = "https://validator.w3.org/nu/?showsource=yes&nocache=" + Math.random(); form.target = '_blank'; form.enctype = 'multipart/form-data'; var textarea = document.createElement('textarea'); textarea.name = 'content'; textarea.value = allContent; form.appendChild(textarea); document.body.appendChild(form); form.submit(); var validatorForm = document.getElementById('deque-w3c-validator-bookmarklet'); if (validatorForm) { validatorForm.remove(); } })();
🌐
W3C
w3.org › developers › tools
Validators and tools | Developers | W3C
This page lists the validators and web developer tools.
🌐
npm
npmjs.com › package › w3c-html-validator
w3c-html-validator - npm
January 21, 2026 - Latest version: 2.2.0, last published: 2 months ago. Start using w3c-html-validator in your project by running `npm i w3c-html-validator`. There are 4 other projects in the npm registry using w3c-html-validator.
      » npm install w3c-html-validator
    
Published   Jan 21, 2026
Version   2.2.0
Author   Thomas Davis
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
W3C Web Validator - Visual Studio Marketplace
Extension for Visual Studio Code - Check the validity of your HTML/CSS files in one click
🌐
W3C
jigsaw.w3.org › css-validator
The W3C CSS Validation Service - Jigsaw
Check Cascading Style Sheets (CSS) and (X)HTML documents with style sheets ... Note: If you want to validate your CSS style sheet embedded in an (X)HTML document, you should first check that the (X)HTML you use is valid.
Find elsewhere
🌐
W3C
validator.w3.org › favelets.html
Favelets For The W3C Markup Validation Service
Check the markup (HTML, XHTML, …) of Web documents · Favelets are small snippets of JavaScript embedded in a Bookmark URL that allow Bookmarks in browsers to do various advanced things. Popular Favelets include variants that prompt the user for a phrase and search the web for that phrase, or that finds older versions of the currently viewed page in the WayBack Machine.
🌐
FreeFormatter
freeformatter.com › html-validator.html
Free Online HTML Validator - FreeFormatter.com
Validates HTML files for compliance against the W3C standards and performs linting to assess code quality against best practices.
Top answer
1 of 1
1

I think the code snippet below will you can get the same effect and user experience you’re after.

It’s written using jQuery’s $.ajax(…) with some DOMParser and document.write(…) to put the styled results and UI of the W3C HTML Checker into a new window the way it seems you want.

var validator_baseurl= "https://validator.w3.org/nu/";
var validator_requesturl = validator_baseurl
    + "?showsource=yes&showoutline=yes";
$.ajax({
    url: validator_requesturl,
    type: "POST",
    crossDomain: true,
    data: storyhtml,
    contentType: "text/html;charset=utf-8",
    dataType: "html",
    success: function (response) {
        var results = (new DOMParser()).parseFromString(response, "text/html");
        results.querySelector("link[rel=stylesheet]").href
            = validator_baseurl + "style.css";
        results.querySelector("script").src
            = validator_baseurl + "script.js";
        results.querySelector("form").action
            = validator_requesturl;
        var newWin = window.open("about:blank",
            "Checker results", "height=825,width=700");
        newWin.document.open();
        newWin.document.write(results.documentElement.outerHTML);
        newWin.document.close();
        newWin.location.hash = "#textarea";
        setTimeout(function() {
            newWin.document.querySelector("textarea").rows = "5";
        }, 1000)
    }
});

Explanation

  • causes a POST request to be sent to the W3C HTML Checker
  • makes the storyhtml text the POST body
  • makes text/html;charset=utf-8 the POST body’s media type (what the checker expects)
  • causes the checker to actually check the storyhtml contents automatically
  • shows the checker results in a new window right when it’s first opened, in one step (so your users don’t need to do a second step to manually submit it for checking themselves)
  • replaces relative URLs for the checker’s frontend CSS+JS with absolute URLs (otherwise in this “standalone window” context, the CSS wouldn’t get applied, and the script wouldn’t run)
  • newWin.location.hash = "#textarea" is needed to make the checker show the textarea

Notes

  • intentionally uses the current W3C HTML Checker (not the legacy W3C markup validator)

  • intentionally sends the content to be checked as a POST body, not multipart/form-data); the checker supports multipart/form-data but making it a POST body is easier and better

  • the setTimeout textarea bit isn’t required; I just put it to make the results visible without scrolling (bottom part of new window below textarea); you can of course remove it if you want

  • sets the new window’s height and width a bit larger than the 600x600 in the question’s original code; again, I just did that to make things easier to see; change them however you want

  • uses standard DOM ops that may have better jQuery methods/idioms (I don’t normally use jQuery, so I can imagine there are ways to streamline the code in it further around JQuery)

  • could of course also be done without using jQuery at all—using standard Fetch or XHR instead (and I’d be happy to also add examples here that use Fetch and XHR if desired)

  • tested & works as expected in Edge, Firefox, Chrome & Safari; but as with any code that uses document.open, Safari users need to unset Preferences > Security > Block pop-up windows

🌐
Infidigit
infidigit.com › home › technical seo › what is w3c validation? a guide to html, css & markup validators
What is W3C Validation: How the W3C Validator Works with HTML & CSS
September 24, 2025 - Identifying these errors well in advance enables you to take action immediately and solve the problems before they impact your website’s performance and online presence. At times, validation doesn’t give results as planned according to all guidelines. And it is possible to achieve the same goal in different ways. For instance, W3C standards do not think that it is possible to use <button> to output a button and then add an href tag within it using the <a> element. However, JavaScript accepts this code without any errors because the language provides ways to do this.
🌐
Devzery
devzery.com › post › w3-website-validator-guide-to-html-and-css-validation
W3 Website Validator: Guide to HTML and CSS Validation
September 16, 2024 - The W3 Website Validator is a free online tool by the W3C that checks HTML and CSS code for errors and compliance with web standards.
🌐
GitHub
github.com › w3c › markup-validator
GitHub - w3c/markup-validator · GitHub
The tool consists of a perl-based CGI script that uses DTD to verify the validity of HTML3, HTML4 and XHTML documents; it also incorporates by reference the NU Validator used to validate HTML5 / HTML LS documents. W3C Software License and Notice.
Starred by 139 users
Forked by 32 users
Languages   HTML 79.1% | Perl 13.3% | Python 2.2% | CSS 2.1% | Clean 1.3% | JavaScript 0.9%
🌐
Html-validate
html-validate.org
HTML-validate
Many validators will behind the scene upload the markup to online services such as W3C.
🌐
JSON Formatter
jsonformatter.org › html-validator
HTML Validator Online to validate HTML data: W3C HTML Validator
HTML Validator Online is easy to Validate HTML. Copy, Paste and Validate. This is also called as HTML Lint tool. Supports w3c html validator.
🌐
GitHub
github.com › theoludwig › html-w3c-validator
GitHub - theoludwig/html-w3c-validator: CLI for validating multiple html pages using validator.w3.org. · GitHub
html-w3c-validator is a CLI tool to validate HTML pages using validator.w3.org. You might use a JavaScript framework or simply use HTML but you should always validate your production HTML and this validation should be part of your CI/CD pipeline ...
Starred by 5 users
Forked by 2 users
Languages   TypeScript 89.9% | HTML 9.4% | JavaScript 0.7%
🌐
W3C
validator.w3.org › about.html
About the W3C Markup Validation Service
Check the markup (HTML, XHTML, …) of Web documents ... The Markup Validator is a free service by W3C that helps check the validity of Web documents.
🌐
Wikipedia
en.wikipedia.org › wiki › W3C_Markup_Validation_Service
W3C Markup Validation Service - Wikipedia
August 8, 2025 - The Markup Validation Service is a validator by the World Wide Web Consortium (W3C) that allows Internet users to check pre-HTML5 HTML and XHTML documents for well-formed markup against a document type definition (DTD).
🌐
W3C
validator.w3.org › services
W3C Validation Services
W3C provides various free validation services that help check the conformance of Web sites against open standards.