Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | RSS2 | Atom | Backend
additionally, dynamically generated search results, like this example. I'm not including this as one of the three, because I've never written a search engine.
Under most circumstances, a web page is an HTML Document. Here is an example of a valid HTML document:
| a html document |
|---|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-type"
content='text/html; charset="iso-8859-1"'>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Heading</h1>
<p>content</p>
</body>
</html>
|
Under most circumstances, you request a document, and the server feeds you back a stream of bytes that did not exist before that request. The server calls another script or program to output the HTML document on the fly. This is called a dynamically generated web page. Here is an example of a perl script that might genetate such a page:
| index.pl |
|---|
#/usr/bin/perl
print <<"HERE";
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-type"
content='text/html; charset="iso-8859-1"'>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Heading</h1>
HERE
print ' <p>Current date and time: '.localtime().'.</p>';
print <<"HERE";
</body>
</html>
HERE
|
The next thing to do is design the look and layout of your page. I'm not going to tell you how to do it, but I will give suggestions:
file modification time: 2003-07-16 01:18:44 -04:00
Copyright 1997-2012 by Hal Canary.
mailto: halcanary at gmail dot com
http://halcanary.org