/
tables_lists.html
58 lines (55 loc) · 1.43 KB
/
tables_lists.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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Tables and Lists</title>
</head>
<body>
<h1>HTML Tables and Lists</h1>
<h2>Table</h2>
<table>
<caption>CAPTION: TR for each row</caption>
<tr>
<th>Column 1 Title (TH)</th>
<th>Column 2 Title (TH)</th>
<th>Column 3 Title (TH)</th>
</tr>
<tr>
<td>Row 1 - Column 1 (TD)</td>
<td>Row 1 - Column 2 (TD)</td>
<td>Row 1 - Column 3 (TD)</td>
</tr>
<tr>
<td>Row 2 - Column 1 (TD)</td>
<td>Row 2 - Column 2 (TD)</td>
<td>Row 2 - Column 3 (TD)</td>
</tr>
</table>
<hr/>
<h2>Lists</h2>
<h3>Unordered List (UL)</h3>
<ul>
<li>First item (LI)</li>
<li>Second item (LI)</li>
<li>Third item (LI)</li>
</ul>
<h3>Ordered List Attributes (OL)</h3>
<ol>
<li>TYPE (1, A, a, I, and i) defines the type</li>
<li>START sets the starting number.</li>
<li>REVERSED reverses the order.</li>
</ol>
<ol start="6" type="I" reversed>
<li>First item (LI)</li>
<li>Second item (LI)</li>
<li>Third item (LI)</li>
</ol>
<h3>Description List (DL)</h3>
<dl>
<dt>First item (DT)</dt>
<dd>First description (DD)</dd>
<dt>Second item (DT)</dt>
<dd>Second description (DD)</dd>
</dl>
</body>
</html>