-
Notifications
You must be signed in to change notification settings - Fork 0
/
tables.html
49 lines (49 loc) · 1.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tables In HTML:</title>
</head>
<body>
<!-- An HTML table is defined with the <table> tag. Each table row is defined with the <tr> tag.
A table header is defined with the <th> tag. By default,
table headings are bold and centered. A table data/cell is defined with the <td> tag.
Note: The <td> elements are the data containers of the table.
They can contain all sorts of HTML elements; text, images, lists, other tables, etc.-->
<h2><u>This is a basic HTML table:</u></h2>
<table>
<th>
<strong><u>Student Test Scores for 3 Exams.</u></strong>
</th>
<tr>
<td>Student #</td>
<td>Student 1</td>
<td>Student 2</td>
<td>Student 3</td>
<td>Student 4</td>
</tr>
<tr>
<td>Exam 1</td>
<td>100</td>
<td>90</td>
<td>80</td>
<td>70</td>
</tr>
<tr>
<td>Exam 2</td>
<td>60</td>
<td>70</td>
<td>80</td>
<td>90</td>
</tr>
<tr>
<td>Exam 3</td>
<td>80</td>
<td>80</td>
<td>80</td>
<td>80</td>
</tr>
</table>
</body>
</html>