How to validate HTML markup locally?


#1

Hi All,

While working HTML pages on locally hosted site I want to check if my html markup is valid. What is the best way to do it?
I understand that I can upload to a server and use w3c’s service to validate but that take a lot of time and I don’t want to validate it after finishing. I want to validate the markup while coding.

I searched for firefox addons and installed the html-validator, but that doesn’t show the correct validation results. Is there any other better one?

thanks.


#2

Hi! There is an add-on for firefox called Web developer. it install a toolbar, from that you have to select Tools->Validate local HTML


#3

I use HTML validator and it works for me.

Once the code is finished then I copy and paste it into the w3c code to give it a quick check.


#4
dexterous said

Hi All,

While working HTML pages on locally hosted site I want to check if my html markup is valid. What is the best way to do it?
I understand that I can upload to a server and use w3c’s service to validate but that take a lot of time and I don’t want to validate it after finishing. I want to validate the markup while coding.

I searched for firefox addons and installed the html-validator, but that doesn’t show the correct validation results. Is there any other better one?

thanks.

https://addons.mozilla.org/en-US/firefox/addon/web-developer/


#5

The w3c validator has an option to paste code into a text box or upload a file.


#6
fillerspace said

The w3c validator has an option to paste code into a text box or upload a file.

with mozilla web-developer toolbar you can validate local HTML and CSS from the browser. Also there is a google chrome extension that can also validate local HTML


#7

Thank you all. I have installed web-developer for firefox.


#8

One I use is https://addons.mozilla.org/en-US/firefox/addon/html-validator/ and I have the Algorithm set to SGML Parser


#9

There’s a Chrome version of Web Developer as well https://chrome.google.com/webstore/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm


#10

How can validate wordpress theme?


#11

I use grunt task to validate html is tricky to learn modern workflow but once after you start you will be addicted :slight_smile: https://www.npmjs.org/package/grunt-html-validation