Page 56 - DCAP202_Fundamentals of Web Programming
P. 56
Unit 5: Creating Tables
<td> </td> Notes
</tr>
</table>
Output
row 1, cell 1 row 1, cell 2
row 2, cell 1
5.2.4 Table Tags
Table 5.1 is showing the table tags.
Tale 5.1: Table Tags
Tag Description
<table> Defines a table
<th> Defines a table header
<tr> Defines a table row
<td> Defines a table cell
<caption> Defines a table caption
<colgroup> Defines groups of table columns
<col> Defines the attribute values for one or more columns in a table
<thead> Defines a table head
<tbody> Defines a table body
<tfoot> Defines a table footer
Task Illustrate the use of various table tags.
Self Assessment
Fill in the blanks:
5. When you finish all of the cells for a row, you would then close the row with the ending
row tag, ...........................
6. If you do not specify a ........................... attribute the table will be displayed without any
borders.
7. Headings in a table are defined with the ........................... tag.
5.3 Linking Document
Once you have the ability to create HTML pages, you’ll want to learn how to create links
between them, so that you can start building a site. Links are the essence of HTML — they are
what makes it unique.
What makes the web so effective is the ability to define links from one page to another, and to
follow links at the click of a button. A single click can take you right across the world!
LOVELY PROFESSIONAL UNIVERSITY 49