|
CREATING VALID HTML Writing polite code. The previous example was not very polite. In fact, it out and out lied about its content saying its data was HTML when it was plain text. The second example demonstrates how to conform a bit more to HTTP and HTML standards by including more information about the script's content and correctly formating the output. Try the following script, 02-validCoding.cgi:
Hello, World! #2 The script (below) has the exact functionality as the first example, but this one is more truthful about its output's content and it formats the results. View the source code of the output of Hello, World! and Hello, World! #2 to see the difference. |
THE CODE |
Here is the script's code:
|
HOW IT |
Here is how the script works:
|
Version: 1.5
Last updated: 2004/12/23. See the release notes.
Author: Eric Lease Morgan (eric_morgan@infomotions.com)
URL: http://infomotions.com/musings/waves/