Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
150 views2 pages

Practical-7 - Table in HTML

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views2 pages

Practical-7 - Table in HTML

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DON BOSCO SCHOOL SILCHAR

SUBJECT-COMPUTER SCIENCE
CLASS-VIII
PRACTICAL-7
<HTML>
<HEAD>
<TITLE>Learning Tables in HTML</TITLE>
</HEAD>
<BODY>
<CENTER>
<TABLE BORDER=3>
<CAPTION> Student Table</CAPTION>
<TR><TH colspan=2>DBS SILCHR</TH><TR>
<TR><TD>CLASS</TD><TD>ACTIVITY</TD><TR>
<TR><TD ROWSPAN=3>VIII</TD><TD>SCOUTS & GUIDE</TD><TR>
<TR><TD>NCC</TD><TR>
<TR><TD>INSTRUMENTAL</TD><TR>
</TABLE>
</BODY>
</HTML>

Output
Student Table
DBS SILCHAR

CLASS ACTIVITY

SCOUTS&GUIDE

VIII NCC

INSTRUMENTAL

**************************************************

NOTE: You can also create the above table by using the differenttable
properties.
Codings with tables properties given below
<HTML>
<HEAD>
<TITLE>Learning Tables in HTML</TITLE>
<style>
Body{background-color:yellow;margin-top:40px}
Table{border:5px solid green;background-color:pink}
Td{padding:30px;text-align:center;font-size:30px}
Tr:hover{background-color:white}
</style>
</HEAD>
<BODY>
<CENTER>
<TABLE>
<CAPTION> Student Table</CAPTION>
<TR><TH colspan=2>DBS SILCHR</TH><TR>
<TR><TD>CLASS</TD><TD>ACTIVITY</TD><TR>
<TR><TD ROWSPAN=3>VIII</TD><TD>SCOUTS & GUIDE</TD><TR>
<TR><TD>NCC</TD><TR>
<TR><TD>INSTRUMENTAL</TD><TR>
</TABLE>
</BODY>
</HTML>

......................................................

You might also like