Introduction to Hyper Text Markup Language
Introduction to Hyper Text Markup Language
1.2 HTTP
So if the web is a huge client/server system, what is the underlying client/server protocol that is used
by the client software and the server software for communication? Well, the client/server protocol used
by the web is HTTP (Hyper Text Transport Protocol).
HTTP is a protocol that is defined in several RFC´s (Request for Comments) located at the Internic
and has had several generations worth of revisions (HTTP/09, HTTP/1.0 and HTTP/1.1).
HTTP is a "request-response" type protocol that specifies that a client will open a connection to a server
then send a request using a very specific format. The server will then respond and close the connection.
-1-
HTML (Hyper Text Markup Language) is a very simple language used to "describe" the logical
structure of a document. For example, it can describe which text the browser should emphasize, which
text should be considered body text versus header text, and so forth.
¾ Hyper is the opposite of linear. It used to be that computer programs had to move in a linear fashion.
This before this, this before this, and so on. HTML does not hold to that pattern and allows the
person viewing the World Wide Web page to go anywhere, any time they want.
¾ Text is what you will use. Real, honest to goodness English letters.
¾ Mark up is what you will do. You will write in plain English and then mark up what you wrote.
¾ Language because they needed something that started with "L" to finish HTML and Hypertext
Markup Louie didn't flow correctly. Because it's a language, really -- but the language is plain
English.
It is important to note that the formatting codes within an HTML tag are case-insensitive. Thus, the
following two versions of the bold tag would both be understood by a web browser:
You can also compound formatting styles together in HTML. However, you should be very careful to
"nest" your code correctly. For example, the following HTML code shows correct and incorrect nesting:
In the incorrect version, notice that the bold tag was closed before the center tag, even though the bold
tag was opened first. The general rule is that tags on the inside should be closed before tags on the
outside.
Finally, HTML tags can not only define a formatting option, they can also define attributes to those
options as well. To do so, you specify an attribute and an attribute value within the HTML tag. For
example, the following tag creates a heading style aligned to the left:
-2-
There are a few things to note about attributes however. First, it is not necessary to enclose attribute
values within quotes unless white space is included in the value. Secondly, it is not necessary to have a
space before or after the equal sign that matches an attribute to its value. Finally, when you close an
HTML tag with an attribute, you should not include attribute information in the closing.
Finally, you should know that web browsers do not care about white space that you use in your HTML
document. For example, the following two bits of HTML will be displayed the exact same way:
And keep this in mind: HTML documents must be text only. When you save an HTML document, you
must save only the text, nothing else.
What you name your document is very important. You must first give your document a name and then
add a suffix to it. That's the way everything works in HTML. You give a name and then a suffix.
-3-
Follow this format to name your document:
1. Choose a name. Anything. If you have a PC not running Windows 95, you are limited to eight letters,
however.
2. Change save as type to “All files”. Add a suffix. For all HTML documents, you will add either ".htm" or
".html". (".htm" for PCs running Windows 3.x and ".html" for MAC and Windows 95/98 Machines)
<Exercise1>
Make an HTML document as follows and name it “ex1.html”.
After that display it by the Internet Explorer.
<HTML>
<HEAD>
<TITLE>Exercise1</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
-4-
The figure below shows how a web browser would interpret the HTML code above. Notice that the
comment line does not show up in the browser window. Also, notice that the text between the <TITLE>
and </TITLE> tags is displayed in the browser title bar.
Here's how you look at an HTML document (known as the "source code"):
1. When you find a page you like, click on VIEW at the top of the screen.
2. Choose DOCUMENT SOURCE from the menu. Sometimes it only reads SOURCE.
3. The HTML document will appear on the screen.
-5-
2.5 Text Formatting Tags
z To specify a new paragraph, you will use the <P> tag and to specify a line break, you will use the
<BR> tag.
z You can also instruct the browser draw a line between text using the <HR> tag, but many design
theorists recommend against using the tag.
z The following table reviews the features of the tags
-6-
<Exercise2 ~Using P,BR Tags~>
Make an HTML document as follows and name it “ex2.html”.
After that display it by the Internet Explorer.
<HTML>
<HEAD>
<TITLE>Exercise2</TITLE>
</HEAD> Press “ENTER”
<BODY>
Even you press "ENTER" to start text on the new line,
the web browser does not pay attention to "ENTER". So you need to use tags to start text on the
new line, like this.<BR>
And If you make a paragraph, you should use P tag. P skips a line before starting the text
again<BR>
<P>This is the first paragraph.</P>
<P ALIGN="CENTER">This is the second paragraph. This paragraph is aligned center.</P>
<P ALIGN="RIGHT">This is the third paragraph. This paragraph is aligned right.</P>
</BODY>
</HTML>
-7-
<Exercise3~Using HR Tag~>
Make an HTML document as follows and name it “ex3.html”.
After that display it by the Internet Explorer.
<HTML>
<HEAD>
<TITLE>Exercise3</TITLE>
</HEAD>
<BODY>
1.HR tag gives you a line across the page.
<HR>
2.You can change the width using WIDTH parameter and align line to left using ALIGN parameter.
<HR WIDTH="200" ALIGN="LEFT">
3.You can also change the line width with some percentage of the document width
<HR WIDTH="50%" ALIGN="CENTER">
<HR WIDTH="20%" ALIGN="RIGHT">
4.You can change the size using SIZE parameter.
<HR SIZE="5">
5.NOSHADE will turn off the beveling look
<HR WIDTH="200" SIZE="5" NOSHADE>
6.COLOR tag will change the color of the line.
<HR WIDTH="200" SIZE="5" COLOR="RED">
</BODY>
</HTML>
-8-
<Exercise4>
Make an HTML document as you can see follows by the Internet Explorer and name it “ex4.html”.
Blue Line
2.6 Heading
Heading commands are used extensively in HTML documents to create headings.
There are six (6) heading commands: <H1> through <H6>. <H1> is the largest and <H6> is the smallest.
Although the heading tags do size text, their use solely for that purpose should be discouraged.
Headings are a good example of 'logical markup'. Note that some search engines give greater weight to
words in headings. It's generally recommended that heading tags increase by one for sub-headings, e.g.
h1, h2, h3, h3, h2, h2,... using h1 only once per page, matching the title.
-9-
<Exercise5>
Make an HTML document as follows and name it “ex5.html”.
After that display it by the Internet Explorer.
<HTML>
<HEAD>
<TITLE>Exercise5</TITLE>
</HEAD>
<BODY>
<H1 ALIGN="CENTER">The Chapter One</H1>
<H2>1.Communication Between Browser and Server</H2>
<H3>1.1 The Client/Server System</H3>
The web is the client/server system.
<H2>2.Creating and Displaying a Formatted HTML Document</H2>
<H3>2.1 Hyper Text Markup Language</H3>
HTML (Hyper Text Markup Language) is a very simple language.
</BODY>
</HTML>
You can see ex5.html as the below figure.
- 10 -
2.7 Font Tags
To change font size, color, and face, you can use <FONT> tag.
Notice that the end command for a <FONT SIZE="**"> tag only requires </FONT>. You can use SIZE,
COLOR and FACE tag in side a FONT tag. But even if you use all three inside a FONT tag, you still only
need one </FONT>. For example;
*1 : Those 16 colors can be described by the name of the color. You can also use RGBcode which is in a
bracket beginning with #.
- 11 -
*2 The font faces, which are frequently used are follows;
- 12 -
<Exercise6>
Make an HTML document as follows and name it “ex6.html”.
After that display it by the Internet Explorer.
<HTML>
<HEAD>
<TITLE>Exercise6</TITLE>
</HEAD>
<BODY>
<FONT SIZE="7">This font size is 7.</FONT><BR>
<FONT SIZE="6">This font size is 6.</FONT><BR>
<FONT SIZE="5">This font size is 5.</FONT><BR>
<FONT SIZE="4">This font size is 4.</FONT><BR>
<FONT SIZE="3">This font size is 3.</FONT><BR>
<FONT SIZE="2">This font size is 2.</FONT><BR>
<FONT SIZE="1">This font size is 1.</FONT><BR>
<FONT SIZE="5" FACE="COURIER NEW"> This font is COURIER NEW.</FOTN><BR>
<FONT SIZE="5" FACE="VERDANA"> This font is VERDANA.</FOTN><BR>
<FONT SIZE="5" FACE="TIMES NEW ROMAN"> This font is TIMES NEW ROMAN.</FOTN><BR>
<FONT SIZE="7" FACE="MS GOTHIC" COLOR="RED">This font color is red.</FONT><BR>
<FONT SIZE="7" FACE="CENTURY" COLOR="BLUE">This font color is blue.</FONT><BR>
</BODY>
</HTML>
- 13 -
<Exercise 7>
Make an HTML document as you can see follows by the Internet Explorer and name it “ex7.html”.
Colored Red
Colored Green
Colored
Blue
<Exercise 8>
Make an HTML document as follows and name it “ex8.html”.
After that display it by the Internet Explorer.
<HTML>
<HEAD>
<TITLE>Exercise8</TITLE>
</HEAD>
<BODY>
<B>This is bold font</B><BR>
<I>Italicized font</I><BR>
<B><I>Bolded and italicized font</I></B><BR>
<U>Underlined Font</U>
</BODY>
</HTML>
- 14 -
2.9 Aligning Text
You can align text using following tags.
<Exercise 9>
Make an HTML document as follows and name it “ex9.html”.
After that display it by the Internet Explorer
<HTML>
<HEAD>
<TITLE>Exercise9</TITLE>
</HEAD>
<BODY>
<DIV ALIGN=”RIGHT”> This is right.</DIV><BR>
<CENTER>This is center.</CENTER>
</BODY>
</HTML>
- 15 -
2.10 Lists
There are several types of lists that are used commonly. These include:
<Exercise 10>
Make an HTML document as follows and name it “ex10.html”.
After that display it by the Internet Explorer
<HTML>
<HEAD>
<TITLE>Exercise 10</TITLE>
</HEAD>
<BODY>
<B>Food</B>
<UL>
<LI>Vegetables
<UL>
<LI>Broccoli
<LI>Carrot
<LI>Pea
</UL>
<LI>Meat
<UL>
<LI>Chicken
<LI>Beef
<LI>Pork
</UL>
</UL>
</BODY>
</HTML>
- 16 -
Modifying the Bullet
¾ You can modify the look of the bullets by using the TYPE attribute in the <UL> tag.
¾ The TYPE attribute supports the following VALUES: CIRCLE, DISC, or SQUARE
¾ Below is some code that demonstrates the usage of the TYPE attribute.
<Exercise 11>
Make an HTML document as follows and name it “ex11.html”.
After that display it by the Internet Explorer
<HTML>
<HEAD>
<TITLE>Exercise 11</TITLE>
</HEAD>
<BODY>
<B>Food</B>
<UL TYPE = "SQUARE">
<LI>Vegetables
<UL TYPE = "DISC">
<LI>Broccoli
<LI>Carrot
<LI>Pea
</UL>
<LI>Meat
<UL>
<LI>Chicken
<LI>Beef
<LI>Pork
</UL>
</UL>
</BODY>
</HTML>
- 17 -
2.10.2 Ordered Lists
¾ Ordered lists allow you to create lists with various bullet styles which reflect the level of hierarchy.
¾ The basic ordered list involves three tags
¾ The <OL> tag is used to open a list. The <LI> tag is used to signify a list element, and the </OL>
tag is used to end a list.
¾ For example, the following code could be used to create a list:
<Exercise 12>
Make an HTML document as follows and name it “ex12.html”.
After that display it by the Internet Explorer
<HTML>
<HEAD>
<TITLE>Exercise 12</TITLE>
</HEAD>
<BODY>
<B>Food</B>
<OL>
<LI>Vegetables
<OL>
<LI>Broccoli
<LI>Carrot
<LI>Pea
</OL>
<LI>Meat
<OL>
<LI>Chicken
<LI>Beef
<LI>Pork
</OL>
</OL>
</BODY>
</HTML>
- 18 -
Modifying the Bullet
¾ You can modify the look of the bullets by using the TYPE or START attributes in the <OL> tag.
¾ The TYPE attribute supports the following values: A, a, I, i, or 1.
¾ The START attribute specifies at what point to start counting from.
¾ Below is some code that demonstrates the usage of the TYPE and START attributes.
<Exercise 13>
Make an HTML document as follows and name it “ex13.html”.
After that display it by the Internet Explorer
<HTML>
<HEAD>
<TITLE>Exercise 13</TITLE>
</HEAD>
<BODY>
<B>Food</B>
<LI>Meat
<LI>Chicken
<LI>Beef
<LI>Pork
</OL>
</OL>
</BODY>
</HTML>
- 19 -
2.10.2 Definition Lists
¾ Definition lists allow you to create lists that are more like glossary entries than hierarchies.
¾ The basic definition list involves four tags
¾ The <DL> tag is used to open a definition list. The <DT> tag is used to signify a definition term, the
<DD> tag is used to signify a definition term description, and the </DL> tag is used to end the list.
¾ For example, the following code could be used to create a definition list:
<Exercise 14>
Make an HTML document as follows and name it “ex14.html”.
After that display it by the Internet Explorer
<HTML>
<HEAD>
<TITLE>Exercise14</TITLE>
</HEAD>
<BODY>
<B>Food</B>
<DL>
<DT>Vegetables
<DD>Vegetables contain all sorts of essential vitamins.
<DT>Meat
<DD>Meat contains lots of proteins that your body needs
</DL>
</BODY>
</HTML>
- 20 -
2.11 Image
2.11.1 Image Formats
¾ .gif (Graphics Interchange Format)
This file format was developed by CompuServe for storing bitmap images on disk. GIF images
can have up to 65,536 x 65,536 pixels and 256 colors. GIF is a common format for images on
the World Wide Web. Browsers can handle this format quite easily.
¾ .jpeg or .jpg (Joint Photographic Experts Group)
This file format is for storing bitmap images, including lossy compression. For example, if the
picture is 10K bytes when displayed, it may be only 4K bytes when stored. JPEG file format is
often used for high-quality photographic images.
¾ .bmp (pronounced "bimp")
This is a "bitmap." A graphical image represented as an array of brightness values. You will
probably never place a bitmap as an image, although now Internet Explorer browsers allow it. A
bitmap is an image that a computer produces and places for you.
¾ One final note about referencing images. It is very possible that someone will be viewing your page
in a non-graphical way. Perhaps they are blind. Perhaps they have turned off image loading to
speed up their browsing (since images take a long time to load up).
¾ Whatever the case, it is considered good form to always include a value for the ALT attribute in the
IMG tag. The ALT attribute specifies some text that will be displayed if the image cannot be and
looks like the following:
- 21 -
<Exercise 15>
Save an image file, which you want to use on your page in the “HTML” folder.
Then make an HTML document as follows and name it “ex15.html”.
<HTML>
<HEAD>
<TITLE>Exercise15</TITLE>
</HEAD>
<BODY>
This is normal.<BR>
<IMG SRC="****.jpg"><BR>
Use ALT attribute.<BR>
<IMG SRC="****.jpg" ALT="***"><BR>
Change width.<BR>
<IMG SRC="****.jpg" WIDTH="200" ><BR>
Change height.<BR>
<IMG SRC="****.jpg" HEIGHT="100"><BR>
</BODY>
</HTML>
- 22 -
2.11.3 Image Placement and Alignment
The ALIGN attribute specifies where text will be placed relative to an image and how it will wrap around
an image. You can specify an alignment of TOP, BOTTOM, LEFT or RIGHT. The attribute is applied
generically as follows:
Let's take a look at an example since this is the easiest way to really understand image alignment coding.
Consider the following HTML code:
Notice the use of the <BR CLEAR = "ALL"> tag. By using this tag, you let the web browser know that
your alignment instructions have terminated. This allows you to return to normal alignment.
<Exercise 16>
Then make an HTML document as follows and name it “ex16.html”.
<HTML>
<HEAD>
<TITLE>Exercise 16</TITLE>
</HEAD>
<BODY>
<B>No alignment</B><BR>
<IMG SRC = "*.jpg">
Here is some text for the non aligned image<BR>
<B>left alignment</B><BR>
<IMG SRC = "*.jpg" ALIGN = "LEFT">
Here is some text for the left aligned image
<BR CLEAR = "ALL">
<B>right alignment</B><BR>
<IMG SRC = "*.jpg" ALIGN = "RIGHT">
Here is some text for the right aligned image
<BR CLEAR = "ALL">
<B>Middle alignment</B><BR>
<IMG SRC = "*.jpg" ALIGN = "MIDDLE">
Here is some text for the middle aligned image
<BR CLEAR = "ALL">
<B>top alignment</B><BR>
<IMG SRC = "*.jpg" ALIGN = "TOP">
Here is some text for the top aligned image
<BR CLEAR = "ALL">
<B>bottom alignment</B><BR>
<IMG SRC = "*.jpg" ALIGN = "BOTTOM">
Here is some text for the bottom aligned image
</BODY>
</HTML>
- 23 -
2.11.4 Image Margin
Image margins are controlled with the HSPACE and VSPACE attributes. Simply put, the HSPACE and
VSPACE attributes define the margin around your image in pixels.
<Exercise 17>
Then make an HTML document as follows and name it “ex17.html”.
<HTML>
<HEAD>
<TITLE>Exercise 17</TITLE>
</HEAD>
<BODY>
Here is some text that should wrap around this image
very snuggly. <IMG SRC = "*.jpg" ALIGN = "LEFT">
That is because we are using the default margins and the default margins are not
very large.
This image on the other hand should have a decent margin around it
<IMG SRC = "*.jpg" VSPACE = "15" HSPACE = "15" ALIGN = "LEFT">
so that the image will seem displaced a bit.
This usually looks nicer.
</BODY>
</HTML>
- 24 -
2.12. Table
Tables in HTML have two main uses, layout and data representation.
The reasons why use tables for layout are as follows:
• HTML by default has no easy way to position elements on page.
• Sometimes, information has to be structured in a tabular way. (Think of a newspaper)
• It is often helpful to split the page up into logical sections, and then build the table around that.
The other use for tables is to display data. Usually this is data such as results from an experiment, or
something similar, but it can also be results from a database.
<Exercise18>
<HTML>
<HEAD><TITLE>Exercise 18</TITLE></HEAD> <TR>
<BODY> <TD>PRG</TD>
<H1>COMPUTER ROOM TIMETABLE</H1> <TD>-</TD>
<TABLE BORDER=2> <TD>PRG</TD>
<TD>HTML</TD>
<TR> <TD>-</TD>
<TH>MON</TH> </TR>
<TH>TUE</TH>
<TH>WED</TH> <TR>
<TH>THU</TH> <TD>UP(B)</TD>
<TH>FRI</TH> <TD>PRG</TD>
</TR> <TD>UP(C)</TD>
<TD>-</TD>
<TR> <TD>-</TD>
<TD>UP(A)</TD> </TR>
<TD>PRG</TD>
<TD>UP(A)</TD> </TABLE>
<TD>-</TD> </BODY>
<TD>UP(B)</TD> </HTML>
</TR>
- 25 -
2.12.2 Table Attributes
The <TABLE> tag comes with several attributes to make it look nicer. The attributes are shown in the
table below.
ATTRIBUTE DESCRIPTION
ALIGN Specifies the position of the table with respect to the document. This works the
same as the ALIGN parameter for images. Valid values include LEFT, CENTER
and RIGHT.
BGCOLOR Colors the table background just as it would when used with the <BODY> tag.
BORDER Specifies the pixel width of the border that divides table cells and the table itself.
CELLPADDING Specifies the amount of space between the borders of a table and the actual data
in the cell.
CELLSPACING Specifies the amount of space inserted between table cells.
HEIGHT Specifies the height of the table in absolute pixels or as a percentage of available
space.
WIDTH Specifies the width of the table in absolute pixels or as a percentage of the
available space.
<Exercise19>
Modify the ex18.html using table attributes.
1. Change the table with border of 6
Change <TABLE BORDER=”2”> <TABLE BORDER=”6”>
- 26 -
2. The table with a border of 2 and a CELLPADDING of 10
<TABLE BORDER=”2” CELLPADDING=”10”>
- 27 -
2.12.3 Table Cell Attributes
Just as you can define attributes for the table globally, you can also set the attributes for individual table
cells. There are two tags that of define table cells. These are <TH> for table headers and <TD> for table
cells. These tags have a set of attributes that allow you to apply formatting to individual cells. The
attributes are defines in the following table.
ATTRIBUTE DESCRIPTION
ALIGN Specifies the alignment of the text within the cell. Valid values include LEFT,
CENTER and RIGHT.
BGCOLOR Specifies the background color for the table cell.
BORDER Specifies the pixel width of the border that divides table cells and the table itself.
COLSPAN Specifies the number of columns that a single cell should span. The default value of
colspan is 1. A value of zero means the cell will span all columns from the current
column to the last column.
HEIGHT Specifies the height of the cell in absolute pixels or as a percentage of the total
area. Note that all cells in that row will be sized to match this height.
NOWRAP Soecifies that the text within the cell should not be word-wrapped.
ROWSPAN Specifies the number of rows the cell should span. The default value of rowspan is
one. A value of zero means that the cell spans all row from the current row to the
last row.
VALIGN Specifies the vertical alignment of text within the cell. Valid values are TOP,
BOTTOM, or MIDDLE.
WIDTH Specifies the width of the cell in absolute pixels or as a percentage of the total area.
Note that all cells in that column will be sized to match this width.
<Exercise20>
1. Change the cell color by subjects.
<HTML>
<HEAD>
<TITLE>Exercise 18</TITLE>
<TR>
</HEAD>
<TD BGCOLOR="ORANGE">PRG</TD>
<BODY>
<TD>-</TD>
<H1>COMPUTER ROOM TIMETABLE</H1>
<TD BGCOLOR="ORANGE">PRG</TD>
<TABLE BORDER="2">
<TD BGCOLOR="GREEN">HTML</TD>
<TD>-</TD>
<TR>
</TR>
<TH>MON</TH>
<TH>TUE</TH>
<TR>
<TH>WED</TH>
<TD BGCOLOR="BLUE">UP(B)</TD>
<TH>THU</TH>
<TD BGCOLOR="ORANGE">PRG</TD>
<TH>FRI</TH>
<TD BGCOLOR="BLUE">UP(C)</TD>
</TR>
<TD>-</TD>
<TD>-</TD>
<TR>
</TR>
<TD BGCOLOR="BLUE">UP(A)</TD>
<TD BGCOLOR="ORANGE">PRG</TD>
</TABLE>
<TD BGCOLOR="BLUE">UP(A)</TD>
</BODY>
<TD>-</TD>
</HTML>
<TD BGCOLOR="BLUE">UP(B)</TD>
</TR>
- 28 -
2. Use colspan to merge cells.
<HTML>
<HEAD>
<TITLE>Exercise 20-2</TITLE>
</HEAD>
<BODY>
<H1>COLSPAN</H1>
<TABLE BORDER = "1">
<TR>
<TH COLSPAN = "3">Colspan of 3</TH>
<TH>Normal</TH>
</TR>
<TR>
<TD COLSPAN = "2">Colspan of 2</TD>
<TD COLSPAN = "2">Colspan of 2</TD>
</TR>
<TR>
<TD ROWSPAN = "2">Rowspan of 2</TD>
<TD>Normal</TD>
<TD>Normal</TD>
<TD>Normal</TD>
</TR>
<TR>
<TD>Normal</TD>
<TD>Normal</TD>
<TD>Normal/TD>
</TR>
</TABLE></BODY>
</HTML>
- 29 -
2.13 LINK
A link is a bit of text or image that the user may click on in order to be transported somewhere else on the
web. Links (or more accurately Hyperlinks) form a symbolic link between:
Two (or more) different documents or addresses (external links)
Two (or more) places within a document (internal links)
What is a URL
Before we get into links, it would be wise to make sure we understand what a URL is, because URLs are
basic to creating links. A URL (Universal Resource Locator) is the most basic information about where a
web page is located on the web. It includes information about which web server the page is stored on, in
which directory it is located in, its name and the protocol we will use to fetch it.
In this case, we will see use the HTTP protocol to contact the server named “WWW.eeye.com.sg”. We
will tell that server that we are looking for a document called “index.html” that is contained in the directory
“Tutorials/Web_design”.
Internal Links
To create a link that points to a location inside of a document, we will also use the anchor tag with an
HREF attribute. However, rather than setting the HREF value to a simple URL, we will define a location
within a page to link to.
Suppose html files (1.html and 2.html) are stored in a same folder (HTML) and another html file
(ex1.html) is stored in a different folder (image). Image folder is under HTML folder.
To create a link from “1.html” to “2.html”, we use the tag,
<A HREF=”2.html”>Click here</A>
We do not need to write the folder name, because “2.html” file is stored in the same folder as “1.html”.
To create a link from “1.html” to “ex1.html”, we use the tag,
<A HREF=”/image/ex1.html”>Click here</A>
The name of the folder, image, is needed, because “ex1.html” is stored in the different folder from HTML
folder.
- 30 -
<Exercise 21>
Create a top page and create links to your exercise files.
<HTML>
<HEAD>
<TITLE>Exercise21</TITLE>
</HEAD>
<BODY>
<H1>HTML EXERCISES</H1>
<A HREF="ex1.html">Exercise1</A><BR>
<A HREF="ex2.html">Exercise2</A><BR>
<A HREF="ex3.html">Exercise3</A><BR>
<A HREF="ex4.html">Exercise4</A><BR>
<A HREF="ex5.html">Exercise5</A><BR>
<A HREF="ex6.html">Exercise6</A><BR>
<A HREF="ex7.html">Exercise7</A><BR>
</BODY>
</HTML>
- 31 -