Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a built-in HTML validator in any major browser? [closed]

In Firefox, there's a Extension called “Html Validator”. It adds a little indicator icon at the bottom right corner of your window. When a page you visit isn't valid, it lights up. You can click on it to see the errors. The really important feature of this extension is that it does not make a connection to w3c's validator. The same validating SGML parser used by w3c is bundled. This means it can validate local HTML files. (This is most the important use for me, as I do web development with manually coded html files. Each time I preview my HTML in a browser, I can also know whether it has validation errors.)

Is there anything similar in Google Chrome, Opera, Safari, or even IE? When I looked in the past years, all other validator I've seen simply send the current url to w3c's validator site.

like image 288
Xah Lee Avatar asked Apr 10 '11 22:04

Xah Lee


People also ask

How do I validate HTML in Firefox?

In Firefox, there's a Extension called “Html Validator”. It adds a little indicator icon at the bottom right corner of your window. When a page you visit isn't valid, it lights up. You can click on it to see the errors.

Should I use an HTML Validator?

In Summary. Validating any HTML you write as you build your websites will take the guesswork out of how the different browser rendering engines might render your website. This will help you to reduce the amount of time you spend debugging problems with your markup.

How is HTML code validated?

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).


1 Answers

I am the author of the Firefox extension. I have recently rewritten it for Chrome and the new Webextension API of Firefox.

See more info on the extension homepage:

http://users.skynet.be/mgueury/mozilla/index.html

The direct link from the Google Chrome store is this:

https://chrome.google.com/webstore/detail/html-validator/mpbelhhnfhfjnaehkcnnaknldmnocglk

Enjoy,

like image 108
mgueury Avatar answered Oct 04 '22 14:10

mgueury