-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlists.html
More file actions
92 lines (76 loc) · 2.24 KB
/
lists.html
File metadata and controls
92 lines (76 loc) · 2.24 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Lists in HTML</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<h1>Lists in HTML</h1>
<p>Learn how to organize information using ordered and unordered lists.</p>
</header>
<nav>
<a href="index.html">Home</a>
<a href="text.html">First HTML file</a>
<a href="links.html">Links</a>
<a href="images.html">Images</a>
<a href="lists.html">Lists</a>
<a href="tables.html">Tables</a>
<a href="css.html">CSS</a>
</nav>
<div class="content">
<div class="lesson-box">
<h2>Unordered Lists</h2>
<p>Unordered lists use bullet points. They are created with <code><ul></code> and <code><li></code>:</p>
<pre>
<ul>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
</ul>
</pre>
<p>Use unordered lists when the order of items doesn’t matter.</p>
</div>
<div class="lesson-box">
<h2>Ordered Lists</h2>
<p>Ordered lists use numbers. They are created with <code><ol></code> and <code><li></code>:</p>
<pre>
<ol>
<li>Wake up</li>
<li>Brush teeth</li>
<li>Eat breakfast</li>
</ol>
</pre>
<p>Use ordered lists when the order of items matters.</p>
</div>
<div class="lesson-box">
<h2>Nested Lists</h2>
<p>You can place lists inside other lists:</p>
<pre>
<ul>
<li>Fruits
<ul>
<li>Apples</li>
<li>Grapes</li>
</ul>
</li>
<li>Vegetables</li>
</ul>
</pre>
<p>Nested lists are useful for categories and sub‑categories.</p>
</div>
<div class="lesson-box">
<h2>Lesson Checkpoint</h2>
<p>Before moving on, make sure you have:</p>
<ol>
<li>Created unordered and ordered lists in your <code>index.html</code> file.</li>
<li>Experimented with nested lists.</li>
<li>Committed your changes to GitHub.</li>
<li>Viewed your updated site on GitHub Pages.</li>
</ol>
<p>Use the navigation bar to continue to the next lesson.</p>
</div>
</div>
</body>
</html>