-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTables.html
More file actions
140 lines (130 loc) · 3.14 KB
/
Tables.html
File metadata and controls
140 lines (130 loc) · 3.14 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html>
<head>
<title>HTML TABLES</title>
<style>
thead {color:green;}
tbody {color:blue;}
tfoot {color:red;}
</style>
</head>
<body>
<table>
<caption>Trainee Details</caption>
<tbody>
<tr><th>Name</th><th>Designation</th></tr>
<tr><td>Jai Surya B</td><td>Testing Engineer</td></tr>
<tr><td>Riju C</td><td>Software Engineer</td></tr>
<tr><td>Vishal T S</td><td>Web Designer</td></tr>
<tr><td>G Lalith Mohan</td><td>Software Engineer</td></tr>
<tr><td>Aakash K</td><td>Web Designer</td></tr>
<tr><td>Naveen Kumar D</td><td>Software Engineer</td></tr>
</tbody>
</table> <hr>
<table border="1">
<thead>
<tr><th>Name</th><th>Designation</th></tr>
<tr><td>Jai Surya B</td><td>Testing Engineer</td></tr>
<tr><td>Riju C</td><td>Software Engineer</td></tr>
<tr><td>Vishal T S</td><td>Web Designer</td></tr>
</thead>
<tfoot>
<tr><td>G Lalith Mohan</td><td>Software Engineer</td></tr>
<tr><td>Aakash K</td><td>Web Designer</td></tr>
<tr><td>Naveen Kumar D</td><td>Software Engineer</td></tr>
</tfoot>
</table> <hr>
<table border="1",style="width:100%">
<tr>
<th>Name</th>
<th colspan="2">Mobile No.</th>
</tr>
<tr>
<td>Peter</td>
<td>7503520801</td>
<td>9555879135</td>
</tr>
<tr>
<td>John</td>
<td>7503520801</td>
</tr>
<tr>
<td>Sam</td>
<td>7503520801</td>
<td>9555879135</td>
</tr>
</table> <hr>
<table border="1">
<tr><th>Name</th><td>Sam</td></tr>
<tr><th rowspan="2">Mobile No.</th><td>7503520801</td></tr>
<tr><td>9555879135</td></tr>
</table> <hr>
<h2>Example of Colgroup Tag</h2>
<table border="1">
<colgroup>
<col style="background-color: rgb(215, 215, 22)" width="40">
<col style="background-color: #6aeb5c" width="80">
<col style="background-color: #7d8ceb" width="80">
</colgroup>
<tr>
<th>Sr.No</th>
<th>Course</th>
<th>Duration</th>
</tr>
<tr>
<td>1</td>
<td>Html</td>
<td>3 days</td>
</tr>
<tr>
<td>2</td>
<td>CSS</td>
<td>5 days</td>
</tr>
<tr>
<td>3</td>
<td>SQL</td>
<td>15 days</td>
</tr>
</table>
<h2>A Description List(data term,data definition)</h2>
<dl>
<dt>HTML</dt>
<dd>- Hypertext markup language</dd>
<dt>CSS</dt>
<dd>- Cascading Style Sheet</dd>
</dl>
<hr>
<table border="1" style="width:50%">
<caption>Employee Details</caption>
<thead>
<tr>
<th>SNO</th>
<th>Employee Name</th>
<th>Designation</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>John Doe</td>
<td>Software Engineer</td>
</tr>
<tr>
<td>2</td>
<td>Jane Smith</td>
<td>Project Manager</td>
</tr>
<tr>
<td>3</td>
<td>Emily Johnson</td>
<td>Web Designer</td>
</tr> <!-- Add more rows as needed -->
</tbody>
<tfoot>
<tr>
<td colspan="3">Total Employees: 3</td>
</tr>
</table>
</body>
</html>