forked from vikingeducation/demo_html_in_action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tables.html
76 lines (64 loc) · 1.42 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Title -->
<title>HTML in Action</title>
</head>
<body>
<!-- Main Header -->
<header>
<h1>HTML in Action</h1>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/basics.html">Basics</a></li>
<li><a href="/lists.html">Lists</a></li>
<li><a href="/forms.html">Forms</a></li>
<li><a href="/tables.html">Tables</a></li>
</ul>
</nav>
</header>
<!-- Simple Table -->
<h2>Simple Table</h2>
<table>
<tr>
<td>First Name</td>
<td>Last Name</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
<tr>
<td>Jane</td>
<td>Doe</td>
</tr>
</table>
<!-- Table with Head and Body -->
<h2>Table with <code>thead</code> and <code>tbody</code></h2>
<table>
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
<tr>
<td>Jane</td>
<td>Doe</td>
</tr>
</tbody>
</table>
<!-- Main Footer -->
<footer>
A demo by <a href="http://vikingcodeschool.com">Viking Code School</a>
</footer>
</body>
</html>