Skip to content

Commit b6765ae

Browse files
committed
tables
1 parent ea35d6c commit b6765ae

10 files changed

+180
-0
lines changed

.DS_Store

2 KB
Binary file not shown.
Loading

6/basic-table-structure.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<table>
2+
<tr>
3+
<td>15</td>
4+
<td>15</td>
5+
<td>30</td>
6+
</tr>
7+
<tr>
8+
<td>45</td>
9+
<td>60</td>
10+
<td>45</td>
11+
</tr>
12+
<tr>
13+
<td>60</td>
14+
<td>90</td>
15+
<td>90</td>
16+
</tr>
17+
</table>

6/border-and-background.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<table border="2" bgcolor="#efefef">
2+
<tr>
3+
<th width="150"></th>
4+
<th>Withdrawn</th>
5+
<th>Credit</th>
6+
<th width="150" bgcolor="#cccccc">Balance</th>
7+
</tr>
8+
<tr>
9+
<th>January</th>
10+
<td>250.00</td>
11+
<td>660.50</td>
12+
<td bgcolor="#cccccc">410.50</td>
13+
</tr>
14+
<tr>
15+
<th>February</th>
16+
<td>135.55</td>
17+
<td>895.20</td>
18+
<td bgcolor="#cccccc">1170.15</td>
19+
</tr>
20+
</table>

6/example.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<html>
2+
<head>
3+
<title>Tables</title>
4+
</head>
5+
<body>
6+
<table>
7+
<thead>
8+
<tr>
9+
<th></th>
10+
<th scope="col">Home starter hosting</th>
11+
<th scope="col">Premium business hosting</th>
12+
</tr>
13+
</thead>
14+
<tbody>
15+
<tr>
16+
<th scope="row">Disk space</th>
17+
<td>250mb</td>
18+
<td>1gb</td>
19+
</tr>
20+
<tr>
21+
<th scope="row">Bandwidth</th>
22+
<td>5gb per month</td>
23+
<td>50gb per month</td>
24+
</tr>
25+
<!-- more rows like the two above here -->
26+
<tfoot>
27+
<tr>
28+
<td></td>
29+
<td colspan="2">Sign up now and save 10%</td>
30+
</tr>
31+
</tfoot>
32+
</tbody>
33+
</table>
34+
</body>
35+
</html>

6/long-tables.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<table>
2+
<thead>
3+
<th>Date</th>
4+
<th>Income</th>
5+
<th>Espenditure</th>
6+
</thead>
7+
<tbody>
8+
<tr>
9+
<th>1st January</th>
10+
<td>250</td>
11+
<td>36</td>
12+
</tr>
13+
<tr>
14+
<th>2nd January</th>
15+
<td>285</td>
16+
<td>48</td>
17+
</tr>
18+
<!-- additional rows as above -->
19+
<tr>
20+
<th>31st January</th>
21+
<td>129</td>
22+
<td>64</td>
23+
</tr>
24+
</tbody>
25+
<tfoot>
26+
<tr>
27+
<td></td>
28+
<td>7824</td>
29+
<td>1241</td>
30+
</tr>
31+
</tfoot>
32+
</table>

6/spanning-columns.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<table>
2+
<tr>
3+
<th></th>
4+
<th>9am</th>
5+
<th>10am</th>
6+
<th>11am</th>
7+
<th>12am</th>
8+
</tr>
9+
<tr>
10+
<th>Monday</th>
11+
<td colspan="2">Geography</td>
12+
<td>Math</td>
13+
<td>Art</td>
14+
</tr>
15+
<tr>
16+
<th>Tuesday</th>
17+
<td colspan="3">Gym</td>
18+
<td>Home Ec</td>
19+
</tr>
20+
</table>

6/spanning-rows.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<table>
2+
<tr>
3+
<th></th>
4+
<th>ABC</th>
5+
<th>BBC</th>
6+
<th>CNN</th>
7+
</tr>
8+
<tr>
9+
<th>6pm - 7pm</th>
10+
<td rowspan="2">Movie</td>
11+
<td>Comedy</td>
12+
<td>News</td>
13+
</tr>
14+
<tr>
15+
<th>7pm - 8pm</th>
16+
<td>Sport</td>
17+
<td>Current Affairs</td>
18+
</tr>
19+
</table>

6/table-headings.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<table>
2+
<tr>
3+
<th></th>
4+
<th scope="col">Saturday</th>
5+
<th scope="col">Sunday</th>
6+
</tr>
7+
<tr>
8+
<th scope="row">Tickets sold:</th>
9+
<td>120</td>
10+
<td>135</td>
11+
</tr>
12+
<tr>
13+
<th scope="row">Total sales:</th>
14+
<td>$600</td>
15+
<th>$675</th>
16+
</tr>
17+
</table>

6/width-and-spacing.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<table width="400" cellpadding="10" cellspacing="5">
2+
<tr>
3+
<th width="150"></th>
4+
<th>Withdrawn</th>
5+
<th>Credit</th>
6+
<th width="150">Banance</th>
7+
</tr>
8+
<tr>
9+
<th>January</th>
10+
<td>250.00</td>
11+
<td>660.50</td>
12+
<td>410.50</td>
13+
</tr>
14+
<tr>
15+
<th>February</th>
16+
<td>135.55</td>
17+
<td>895.20</td>
18+
<td>1170.15</td>
19+
</tr>
20+
</table>

0 commit comments

Comments
 (0)