Think about Loose Coupling | |
PerlMonks |
CGI.pm HTML vs. W3C HTML Validationby jlongino (Parson) |
on Dec 29, 2001 at 02:08 UTC ( [id://134997]=perlquestion: print w/replies, xml ) | Need Help?? |
jlongino has asked for the wisdom of the Perl Monks concerning the following question:
I've never used CGI.pm to produce HTML before and decided
that it was high time I did so. My primary uses for Perl
are sysadmin tasks and data munging and I've written only a
few web applications.
In all of my programming endeavors I try to develop a cache of basic "templates" from which to build upon. My question is does anyone have an example of a Perl script that uses CGI to create a simple HTML document (e.g., displays a simple table) which passes W3C HTML Validation? I have done a little research (though perhaps not as much as I could have) e.g., I perused some of the CGI tutorials/courses by Ovid and cut/pasted a couple of sample programs but I get errors followed by the message: Sorry, this document does not validate as HTML 2.0Note that I'm not criticizing Ovid, I deeply appreciate the fact that he's gone to so much trouble and have picked up some extremely useful concepts that will come in handy for later projects. I'm also fairly sure that it was not his intent that the examples I used be W3C compliant. I also composed a simple page using the NS composer which didn't pass either. Is trying to conform to W3C standard desirable or overkill? Although my first attempts will be extremely simple, I don't want to start out by acquiring bad habits. Especially when I have a resource like the monastery at my disposal. TIA for any help. --Jim
Back to
Seekers of Perl Wisdom
|
|