🌐
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
🌐
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(); } })();
Discussions

javascript - How to send user-created HTML to W3C validator for automatic checking—without cross-domain errors? - Stack Overflow
I am writing an application for users, in which they input valid HTML into a text field. I have a button in jQuery which tries to load the text field area into the W3C validator: $('#inspecthtml'... More on stackoverflow.com
🌐 stackoverflow.com
What is the W3C VALIDATOR?
The w3c validator is one of the many HTML validators that checks your HTML markup to see if you are following the rules for constructing proper HTML. What is Markup Validation? Most pages on the World Wide Web are written in computer languages (such as HTML) that allow Web authors to structure text, add multimedia content, and specify what appearance, or style, the result should have. As for every language, these have their own grammar, vocabulary and syntax, and every document written with these computer languages are supposed to follow these rules. The (X)HTML languages, for all versions up to XHTML 1.1, are using machine-readable grammars called DTDs, a mechanism inherited from SGML. However, Just as texts in a natural language can include spelling or grammar errors, documents using Markup languages may (for various reasons) not be following these rules. The process of verifying whether a document actually follows the rules for the language(s) it uses is called validation, and the tool used for that is a validator. A document that passes this process with success is called valid. With these concepts in mind, we can define "markup validation" as the process of checking a Web document against the grammar (generally a DTD) it claims to be using. Web browsers are actually very tolerant of mistakes and try to render the HTML as best it can no matter how broken it is. For example, you can create a page missing several closing tags and it will still render something. So just because the HTML renders in the browser doesn't mean all is well. There are no rules as to how invalid HTML should be handled, which is why every browser handles these mistakes in different ways. So it's important to always try and serve up valid HTML. More on reddit.com
🌐 r/learnprogramming
1
1
January 7, 2023
W3C Validator alternatives for broken HTML?
Which of w3 validators do you use? What doctype is set on your documents? Give some examples of "valid things" that show errors in validator? More on reddit.com
🌐 r/webdev
20
11
May 9, 2025
Do you validate your HTML?
ITT: tell me you're under 35 without telling me you're under 35 More on reddit.com
🌐 r/webdev
105
46
January 20, 2022
People also ask

Is W3C validation necessary for SEO?
W3C validation is not a direct ranking factor for SEO, but it helps ensure your website’s code is clean and error-free. This can lead to better browser compatibility, faster loading, and improved user experience, all of which support good SEO practices.
🌐
infidigit.com
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
How do I know if my website passes W3C validation?
You can check your website’s W3C validation status using the W3C Markup Validation Service. Simply enter your website’s URL, and it will show you any coding errors or warnings that need to be fixed.
🌐
infidigit.com
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
Does W3C validation improve page speed?
While W3C validation itself doesn’t directly boost page speed, clean code can reduce rendering errors and improve browser efficiency. This can indirectly help your pages load faster and more smoothly.
🌐
infidigit.com
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
🌐
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
🌐
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.
🌐
W3C
w3.org › developers › tools
Validators and tools | Developers | W3C
This page lists the validators and web developer tools.
Find elsewhere
🌐
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.
🌐
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.
🌐
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
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

🌐
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.
🌐
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 137 users
Forked by 32 users
Languages   HTML 79.1% | Perl 13.3% | Python 2.2% | CSS 2.1% | Clean 1.3% | JavaScript 0.9%
🌐
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.
🌐
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.
🌐
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.
🌐
Html-validate
html-validate.org
HTML-validate
Many validators will behind the scene upload the markup to online services such as W3C.
🌐
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).
🌐
Reddit
reddit.com › r/learnprogramming › what is the w3c validator?
r/learnprogramming on Reddit: What is the W3C VALIDATOR?
January 7, 2023 -

Hello this is willijkm speaking. actually i read a book about html and in a chapter of this book speak about W3C VALIDATOR but i don't quiet understand it, Can you help me? Thanks.

Top answer
1 of 1
1
The w3c validator is one of the many HTML validators that checks your HTML markup to see if you are following the rules for constructing proper HTML. What is Markup Validation? Most pages on the World Wide Web are written in computer languages (such as HTML) that allow Web authors to structure text, add multimedia content, and specify what appearance, or style, the result should have. As for every language, these have their own grammar, vocabulary and syntax, and every document written with these computer languages are supposed to follow these rules. The (X)HTML languages, for all versions up to XHTML 1.1, are using machine-readable grammars called DTDs, a mechanism inherited from SGML. However, Just as texts in a natural language can include spelling or grammar errors, documents using Markup languages may (for various reasons) not be following these rules. The process of verifying whether a document actually follows the rules for the language(s) it uses is called validation, and the tool used for that is a validator. A document that passes this process with success is called valid. With these concepts in mind, we can define "markup validation" as the process of checking a Web document against the grammar (generally a DTD) it claims to be using. Web browsers are actually very tolerant of mistakes and try to render the HTML as best it can no matter how broken it is. For example, you can create a page missing several closing tags and it will still render something. So just because the HTML renders in the browser doesn't mean all is well. There are no rules as to how invalid HTML should be handled, which is why every browser handles these mistakes in different ways. So it's important to always try and serve up valid HTML.
🌐
GitHub
github.com › center-key › w3c-html-validator
GitHub - center-key/w3c-html-validator: 🚦 Test HTML files or URLs against the W3C validator (CLI for package.json scripts)
🚦 Test HTML files or URLs against the W3C validator (CLI for package.json scripts) - center-key/w3c-html-validator
Starred by 22 users
Forked by 2 users
Languages   TypeScript 82.5% | Shell 15.0% | HTML 2.5%