1. Home
  2. Computing & Technology
  3. Python

Part 1: Laying the Groundwork with HTML, CGI, and PHP

From Al Lukaszewski, for About.com

6 of 10

The Only Real HTML Page 1: The Header of menu.html

Next, we need to create menu.html . Once again, this must be valid HTML. The first half of the document is below.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title></title>
<link rel="stylesheet" type="text/css" href="./base.css" />
</head>

<body>
You will notice that I refer to 'base.css' here. Modularity is the key to manageability. Good practice holds that one should always keep one's design dynamics out of the HTML. You may recall that, in the PHP-Javascript-Python tutorial, it was important to keep form separate from function. Within form, it is important to keep design separate from structure. CSS takes care of design and lets HTML reflect the structure. If you do not know CSS, you should take the CSS course at About.com's Web Design site.

Explore Python
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Python

©2009 About.com, a part of The New York Times Company.

All rights reserved.