You are here: Re: Tool to validate HTML code with PHP tags? « PHP Programming Language « IT news, forums, messages
Re: Tool to validate HTML code with PHP tags?

Posted by Alvaro G. Vicario on 04/26/07 18:29

*** webrod escribió/wrote (26 Apr 2007 09:04:36 -0700):
> I have some php pages with a lot of HTML code.
> I am looking for a HTML validator tool (like TIDY).
> TIDY is not good enough with PHP tags (it removes a lot of php code).

PHP is *not* HTML so having problems with an HTML validator is exactly what
you could expect.

I presume you want to validate the HTML generated by your PHP script. Just
load your script through a web server and validate the output with the W3C
validators:

http://validator.w3.org

You have two options:

1) If your web is hosted in a public server, feed the validator with the
URL

2) If your web is hosted in a local test server, feed it with a file
upload. Use your browser's "Save as" feature and save it as plain HTML.

If you Google for "Webdeveloper toolbar" you'll find a Firefox extension
and an Internet Explorer toolbar; any of them can assist you in validating
your HTML.

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация