jlongino has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: CGI.pm HTML vs. W3C HTML Validation
by Ovid (Cardinal) on Dec 29, 2001 at 02:26 UTC | |
|
Re: CGI.pm HTML vs. W3C HTML Validation
by gav^ (Curate) on Dec 29, 2001 at 02:30 UTC | |
|
(ichimunki) Re: CGI.pm HTML vs. W3C HTML Validation
by ichimunki (Priest) on Dec 29, 2001 at 02:13 UTC | |
by jlongino (Parson) on Dec 29, 2001 at 02:27 UTC | |
by ichimunki (Priest) on Dec 29, 2001 at 02:34 UTC |