The web page frontend will be divided into three parts. We
are going to use three frames. We could use CSSP and a bit of
Javascript, but let's save the fancy stuff for later. The
frames will serve the following purposes:
- The feed selection menu (a narrow rectangle in the upper left)
- The feed items (a large, verticle rectangle in the lower left)
- The main page (where the page will load when the headline is selected)
The three frames of the one page are obviously three HTML
documents, but only one of them is real when the page is loaded:
the menu. The rest are taken by a blank, filler page. So, we
have two pages to construct: index
and menu .
If this application is to exist on a server on the internet,
validation is a must. Let us therefore begin with the DOCTYPE
declaration:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
This will tell the server which Document Type Definiton (DTD)
file to use. The DTD effectively determines the lense through
which the server looks at the HTML or XHTML.