Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Validate HTML on local machine

I'm currently trying to learn HTML and Java EE Servlet programming. I have an application server running on my local machine (Orion Application Server) and I'm connecting to web pages I've deployed on this server using a browser running on the same machine, directed to http://localhost/mypage.htm (for example).

I know W3C has a site you can go to that will validate an HTML page (and count how many errors are found for a given doctype), but that has to be a publicly available URL. How do you validate HTML on a locally running setup like I've described above?

like image 741
dvanaria Avatar asked Aug 27 '10 16:08

dvanaria


People also ask

How do I validate my HTML code?

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

many options:

see installation of w3c validation service:

http://validator.w3.org/docs/install.html

Firefox addons:

Firefox addon or other tool to locally validate HTML pages

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

Offline validator:

http://htmlhelp.com/tools/validator/offline/index.html.en

like image 191
Moin Zaman Avatar answered Sep 22 '22 13:09

Moin Zaman