HTML
2
nd
Practical Work on HTML:Table
Objective of this practical work is for understanding how to create the table structure by using the
HTML language.
Ex1: Create a table as showing following:
.
Row1 and Col1 !ow and Col" !ow and Col#
!ow" and Col !ow" and Col" !ow" and Col#
Row3 and Col1 !ow# and Col"
!ow# and Col# with green
background color
."
!ow and Col !ow and Col" !ow$!ow" and Col#$Col% Row1+Row2 and
Col5
Row2 and Col1+Col2
!ow# and Col Row3 and Col2 + Col3 Row3 and Col4 !ow# and Col&
Ex2: Create an HTML docu'ent ()display*co''ents.ht'l)+ that contains a table as following by
using so'e attributes of ,table- tag such as: aling. valing. bgcolor. /etc.
List o all co!!ents
"a!e "ick na!e #ex $%e Co&ntr' Co!!ent
0ong 1eila Mab M 2
Cambodia
3ge 4. finishes high school5
3ge 6. no job
3ge 2. enters 7niversity
1ok 8itha Chork M #&
Cambodia
My favorite is watching T0. listening to
'usic. /etc.
!atha 0ith 9aby M 6
France
: want to find a best friend in Ca'bodia.
1ak ;oh 1ros ( 6
USA
: 'iss ho'e so 'uch. but : don<t know
how to return back to 'y ho'eland.
Hong 0isoth Chork M " Cambodia
=o you find any T0 channels on the
:nternet>