HTML CLASS-3
Tables in HTML
A Table is an element that allow for the
representation of data in two dimensions; these
dimensions are columns Rows.
TABLE IN HTML
Top 4 founders of internet companies
<table>
<caption> Table Caption </caption>
<tr>
<th> Head 1 </th>
<th> Head 2</th>
</tr>
<tr>
<td> Data </td>
<td> Data </td>
</tr>
</table> >
Table tags in HTML Search . . .
<tr>
Used to display table row
<td>
Used to display table data
HARDWARE
<th>
Used to display table Header
Semantic Tags in HTML Search . . .
<thead> To Wrap table header
<tbody> To Wrap table body
HARDWARE
<tfoot> To Wrap table footer
Attributes in tables Search . . .
Rowspan= “ ”
The rowspan attribute in HTML specifies the number of rows a
table cell should span vertically.
The colspan attribute in HTML
Colspan = “ ”
specifies the number of columns a
table cell should span
horizontally.
Practice Q1
Re-Create the following Table using HTML
THANK YOU
END SLIDE