Lab 3 - HTML Tables and Forms
Lab 3 - HTML Tables and Forms
TA Responsibilities:
Marking scheme:
You can discuss your solution with other students; however, you have to submit your own work,
you cannot submit the exact same work (solution) of other students.
The marking contains two components:
1. Lab attendance and it is graded as follows (1 point):
• You must answer questions from the TA during the lab time to confirm your
understanding of the topics covered
o You will receive Un-Satisfactory (U) grade if you only finish questions 1 & 2 (0/1)
o You will receive Marginal (M) grade if you only finish questions 1 to 3 (1/1)
o You will receive Satisfactory (S) grade if you finish all the questions (1/1)
2. Your submitted work will be evaluated based on the completeness and functionality (2 points).
• Refer to the “File Submission” section at the end of this document for more details.
Table of Contents
I. Introduction .................................................................................................................... 2
II. Objective ......................................................................................................................... 2
III. Project Preparation ......................................................................................................... 2
IV. Project Implementation ................................................................................................... 2
Part 1: Create the “catalog.html” page............................................................................................. 2
Part 2: Create the “contact.html” page ............................................................................................ 4
V. File Submission ................................................................................................................ 5
II. Objective
Apply the theory that was learnt during lectures about HTML Tables and Forms in adding features
to the website created in Lab 02.
NOTE: You can choose to speed through the lab and do the minimum amount of work to simply
gain the lab’s credit. However, it is recommended to finish the mandatory and optional parts of
the lab.
In this part, you will work on creating a table and changing its style to match the provided screen
shot. All your work for Part 1 will be on the “catalog.html” document.
In the provided “lab03_images” folder, you will find 27 images with different sizes. You need to
create a table that has 7 columns and 7 rows. In each cell of the table, you will insert one of the
images in order. Refer to the table in the image below for reference:
Think about this as if you have 27 puzzle pieces of different sizes and you are trying to put them
together. Your resulting web page should, as much as possible, look similar to the screenshot
provided below.
a. Which table property do you use to remove space between table borders?
b. How do you remove spacing around a tag? (margin and padding)
c. How to do you center the table in the page?
§ Margin-left: …
§ Margin-right: …
d. If you remove all the spacing between table cells, you will have a remaining
white border around the images, to make sure that the image has is treated as a
block without anything around it, you need to change the image’s selector to
display: block;
Before submitting the file, use http://validator.w3.org/ to confirm that your solution is proper
HTML5.
In this part, you will work on creating a contact us page that looks similar to the provided
screenshot. All your work for Part 2 will be on the “contact.html” document.
Your resulting web page should, as much as possible, look similar to the screenshot provided
below. Note: the page is rendered with Firefox as the browser.
V. File Submission
After you finish all the exercises:
1. Compress your whole project folder (including your Lab02’s files) and submit it to
Brightspace.
• IMPORTANT: The only allowed extension is: .zip
2. Once you are done, you must answer few questions from one of the TAs during the
tutorial time to be “signed out”
3. Submit your work on Brightspace.
• No email submissions are allowed
• Missed deadline will result in an automatic zero