Professional Documents
Culture Documents
in
Gaming and Animation Technology
E1012
Website Development
Lesson 3: Table, Form, and Frame
Objectives
When you complete this lesson, you will be able to:
Understand on how to create table.
Understand on how to create form.
Understand on how to create frame.
Price
Nokia
600
Sony
670
<table> tag start the beginning of the table, and </table> means the
end of the table.
Use border attribute to create border for the table.
Using width, and height attribute to define the table width, and height.
<table border=10 width=500 height=100>
Price
Price
Nokia
600
Name
Nokia
The latest price as at 01/04/2009
Sony
Price
600
670
6
Name
Price
Latest
Nokia
600
Sony
670
3.2 CheckBox
Color<input type=checkbox name=quality>
Brand<input type=checkbox name=quality>
Weight<input type=checkbox name=quality>
They are known as checkbox.
User can select more than one option.
All their field name is must be the same. In this example is quality.
<html>
<body>
<form name=process>
Phones attributes preferences
Color<input type=checkbox name=quality><br>
Brand<input type=checkbox name=quality><br>
Weight<input type=checkbox name=quality><br>
</form></body><html>
11
12
13
3.2 Password
<input type=password name=pass size=20 maxlength=12>
The field name is password.
The type is a password which similar to a single line text box entry
but the entry is masked by asterisk.
The size of 20 define the width of the textbox.
The maxlength allows the user enter up to 12 characters only.
<html>
<body>
<form name=process method=post
action=mailto:username@www.xyz.com>
Enter id<input type=text name=cname size=20><br>
Enter password<input type=password name=pass size=20><br>
<input type=submit value="send data" name=s>
<input type=reset value="clear data" name=r>
</form></body><html>
14
3.2 TextArea
15
<select name=phonetype>
<option>nokia1
<option>nokia2
<option>sony1
<option>sony2
</select>
The field name is phonetype.
A <select> tag creates a pull down menu.
It allows the user to pick answer from a list of value.
Each value must be reference by <option>.
16
18
19
20
21
22
24
When the user click on a link, you need to name a frame so that the
corresponding page will appear inside that frame.
Using name attribute define a name for the frame.
The name for the first column frame is left.
The second column frame name is right.
You need to use the attribute target inside the <a> tag to define the
frame for the page will appear inside it.
25
26
27
28
3.4 Exercise
1. Write html codes to produces the below table. You need to insert
your own car image into the table.
Car Name
Picture of it
Price
BMW
BMW picture
$600000
Toyota
Toyota picture
$400000