Prelim 2

You are going to type this HTML document into the computer, using an editor (most likely `vi', Click here to look at `vim' ), in a place where your system administrator says that outsiders will have execute access.
Here, we will annotate the file. To do this, we prepend line numbers (which are not to be typed in), so that we can discuss these lines below.
[1]<HEAD>
[2]<H1>How to Write Computer Assisted Testing Question</H1>
[3]</HEAD>
[4]<BODY>
[5]<br>
[1]<HEAD> signals the computer to print the next text, as long as it continues on, until the </HEAD> tag appears. This is the heading.
[2]<H1> signals the computer to print the next text in large format. The end of this large size printing is signaled by </H1>.
[4] is a tag which starts the BODY of the HTML page.
[5] says to `br'eak the line, i.e., force a new line.
[6]<H2>Using CGI.pm to write Perl `Programs'</H2>
[6]prints a smaller heading, i.e., smaller type size. This size persists until the end of the H2 tag appears, viz </H2>.
[7]<!- start of list of Chapters and/or Subjects ->
[7] is a comment. A tag which has a start of `<!' is a comment, which you will find very useful for reference when you have forgotten what you did, oh so many years ago!
 
[8]<H3>Tentative Table of Contents</H3>
[8] is similar to the H2 label, specifying header style, this time 3.
[9]<UL>
[10]<LI><A HREF="./cgi-bin/question1.pl">Question 1</A>
[11]</UL>
[9] and [11] delimit a list, each individual item of which is begun with a tag such as in [10], i.e., <LI>.
[12]</BODY>
This last tag ends the body of text.
The ten'th line [10] is a `mouseable' line, a hot link, which starts with <A HREF= and ends with </A>. Notice that there are two >'s on this line, one for each part of the `A'. We will discuss the address of Question 1, i.e., the link that we wish to make available to the reader later, but knowledge of the directory structure of UNIX machines is invaluable for understanding how this link can be made.
Note that in the future we will not print the line numbers in red. Since we are just starting out, i.e., beginning, it is used to help understand that the Perl text is the non-red text.
The next line testing our programming will show a question one, but since we've not written any question yet, it will fail
Test the above html code.
Continue on to next section (prelim3).
Return to the last section (prelim1).
Return to the main book TOC.