-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tables.html
127 lines (127 loc) · 2.32 KB
/
Tables.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<html>
<head>
<title> Tables </title>
</head>
<body bgcolor=#AABBCC>
<h1> Tables Demonstration </h1>
<hr>
<p> <b> Table without border: </b>
<table height=10% width=10%> <!--table tag-->
<tr> <!--table row tag-->
<td> Apples </td> <!--table data tag-->
<td> Oranges </td>
</tr>
<tr>
<td> Bananas </td>
<td> Pineapples </td>
</tr>
</table> </p>
<p> <b> Table with border: </b>
<table border>
<tr>
<td> One </td>
<td> Three </td>
</tr>
<tr>
<td> Two </td>
<td> Four </td>
</tr>
</table> </p>
<p> <b> Setting height and width of a table: </b>
<table border height=15% width=15%>
<tr>
<td> One </td>
<td> Three </td>
</tr>
<tr>
<td> Two </td>
<td> Four </td>
</tr>
</table> </p>
<p> <b> Tables with cells spanning more than one row/col: </b>
<br> Table 1:
<table border height=12.5% width=12.5%>
<tr>
<td> First </td>
<td> Second </td>
<td> Third </td>
</tr>
<tr>
<td rowspan=2> Sixth </td>
<td colspan=2> Fourth </td>
</tr>
<tr>
<td> Fifth </td>
<td> Seventh </td>
</tr>
</table>
<br> Table 2:
<table border height=10% width=10%>
<tr>
<td rowspan=3> 1<sup>st</sup> </td>
<td colspan=2> 5<sup>th</sup> </td>
</tr>
<tr>
<td> 4<sup>th</sup> </td>
<td> 3<sup>rd</sup> </td>
</tr>
<tr>
<td colspan=2> 2<sup>nd</sup> </td>
</tr>
</table>
<br> Table 3:
<table border height=10% width=10%>
<tr>
<td colspan=3> 1<sup>st</sup> </td>
</tr>
<tr>
<td rowspan=2> 4<sup>th</sup> </td>
<td> 2<sup>nd</sup> </td>
<td rowspan=2> 5<sup>th</sup> </td>
</tr>
<tr>
<td> 3<sup>rd</sup> </td>
</tr>
</table>
<br> Table 4:
<table border height=10% width=10%>
<tr>
<td> 6<sup>th</sup> </td>
<td colspan=2> 5<sup>th</sup> </td>
</tr>
<tr>
<td colspan=2> 4<sup>th</sup> </td>
<td rowspan=3> 1<sup>st</sup> </td>
</tr>
<tr>
<td rowspan=2> 7<sup>th</sup> </td>
<td> 2<sup>nd</sup> </td>
</tr>
<tr>
<td> 3<sup>rd</sup> </td>
</tr>
</table>
<br> Table 5:
<table border height=10% width=10%>
<tr>
<td colspan=2> <a href="https://duckduckgo.com"> Google </a> </td>
<td rowspan=2> 2<sup>nd</sup> </td>
</tr>
<tr>
<td rowspan=2>
<ul>
<li> BCA </li>
<li> BBA </li>
<li> B.Ed </li>
</ul>
</td>
<td> <img src="Images/Star.jpeg" height=50 width=50>
</td>
</tr>
<tr>
<td colspan=2> 3<sup>rd</sup> </td>
</tr>
</table>
</p>
</body>
</html>