HTML Tidy and PHP Validation

Legible, Tidy Code

So… after I’d laboriously gone through and tried to make my code a little more legible, I found this resource. I don’t think I’ll use it now, but thought I’d post it in case anybody is at a stage where it will be useful. I would back up code before I replace it with the tidied version – even if it is through the W3C! There are heaps of other tools available for this type of thing, such as this one, which can be used online.

PHP Validation

All my pages have server-side includes; therefore they are all PHP, and I wanted to make sure everything was valid. So while the web pages validated, the included php-coded pages didn’t. Of course (oops, what a time-waster!) as stated in this post validation should be carried out only on the output html, not the source php file. I’m a little tired….d’oh!

Hope all going well with everybody’s final submissions, good luck!

Julie

References

Clean up your Web pages with HTML TIDY. 2012. Clean up your Web pages with HTML TIDY. viewed 2 June 2012 <http://www.w3.org/People/Raggett/tidy/>

HTML Tidy Online. 2012. HTML Tidy Online. viewed 2 June 2012,  <http://infohound.net/tidy/>

validation – how to validate php file with w3c.org – Stack Overflow. 2012. validation – how to validate php file with w3c.org – Stack Overflow. viewed 2 June 2012,  <http://stackoverflow.com/questions/2987116/how-to-validate-php-file-with-w3c-org>

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: