Lec 04
Lec 04
Lecture 4
1
2024-11-09
Table
table column
table header
row
cell
Table
2
2024-11-09
Example
3
2024-11-09
spanning Cells
✓ One fundamental feature of table structure is cell
spanning, which is the stretching of a cell to cover
several rows or columns.
✓ You make a header or data cell span by adding the
following attributes:
– colspan, or
– rowspan
Column spans
✓ Column spans, created with the colspan attribute in the
td or th element, stretch a cell to the right to span over
the subsequent columns
4
2024-11-09
Row spans
✓ Row spans, created with the rowspan attribute, work
just like column spans, but they cause the cell to span
downward over several rows.
Table caption
✓ Tables are given titles with the <caption> tag, which
can immediately follow <table>
<table>
<caption> Fruit Juice Drinks
</caption>
<tr>
<th> </th>
<th> Apple </th>
<th> Orange </th>
<th> Screwdriver </th>
</tr>
<tr>
<th> Breakfast </th>
<td> 0 </td>
<td> 1 </td>
<td> 0 </td>
</tr>
<tr>
<th> Lunch </th>
2016-2017 <td> 1 </td> 10
<td> 0 </td>
<td> 0 </td>
</tr>
</table>
5
2024-11-09
Forms
✓ A form is the usual way information is gotten from a
browser user to a server
✓ HTML has tags to create a collection of objects that
implement this information gathering
– The objects are called widgets or controls or
components
11
12
6
2024-11-09
13
14
7
2024-11-09
15
✓ When the browser encodes that information for its trip to the server,
it looks like this.
✓ If the form method is GET this query string will be sent through the URL,
while if the form method is POST it will be sent through the HTTP protocol.
16
8
2024-11-09