Professional Documents
Culture Documents
Links in HTML
<HTML>
<BODY>
<H1>Computer Science</H1>
Welcome to <A HREF=http://www.vu.edu>Virtual
University</A> in Pakistan
</BODY>
<HTML>
Mailto Link
</Table>
Try coding…
Try to code the following table design:
Cell 2
Cell 1
Cell 3
Example - COLSPAN
<HTML>
<HEAD>
<TITLE> Example - COLSPAN </TITLE>
</HEAD>
<BODY>
<TABLE BORDER="1” align=center>
<CAPTION>Spanning the text</CAPTION>
<TR>
<TD COLSPAN="2">This line is extended to two columns</TD>
<TD>This does not</TD>
</TR>
<TR>
<TD>First Column</TD>
<TD>Second Column</TD>
<TD>Third Column</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Example - ROWSPAN
<HTML>
<HEAD>
<TITLE>Spanning Text</TITLE>
</HEAD>
<BODY>
<TABLE BORDER="1">
<CAPTION>Example - ROWSPAN</CAPTION>
<TR>
<TD ROWSPAN="2">This line is stretched to two rows</TD>
<TD>First Row</TD>
</TR>
<TR>
<TD>Second Row</TD>
</TR>
<TR>
<TD>This does not</TD>
<TD>Third Row</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Table tag attributes
– Border - <table border=“5”>
– Width - <table width=“75%>
– Height - <table height=“100%”>
– Cellpadding - <table cellpadding=“10”>
– Cellspacing - <table cellspacing=“5”>
– Color - <table bgcolor=“#cccccc”> or
<table background=“tablebg.gif”>
Attributes for <td> tag