-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtext.html
More file actions
90 lines (72 loc) · 2.22 KB
/
text.html
File metadata and controls
90 lines (72 loc) · 2.22 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>First HTML File</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<h1>First HTML File</h1>
<p>Learn how to format text and build your first real webpage.</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>Headings</h2>
<p>HTML has six levels of headings, from biggest to smallest:</p>
<pre>
<h1>This is a heading</h1>
<h2>This is a smaller heading</h2>
<h3>And smaller...</h3>
</pre>
<p>Use headings to organize your content clearly.</p>
</div>
<div class="lesson-box">
<h2>Paragraphs</h2>
<p>Paragraphs are created with the <code><p></code> tag:</p>
<pre>
<p>This is a paragraph of text.</p>
</pre>
<p>Paragraphs help break your content into readable sections.</p>
</div>
<div class="lesson-box">
<h2>Bold and Italic Text</h2>
<p>You can emphasize text using bold or italics:</p>
<pre>
<strong>This is bold text</strong>
<em>This is italic text</em>
</pre>
<p><strong>strong</strong> is used for important text,
while <em>em</em> is used for emphasis.</p>
</div>
<div class="lesson-box">
<h2>Line Breaks</h2>
<p>Use <code><br></code> to force a new line:</p>
<pre>
First line<br>
Second line
</pre>
</div>
<div class="lesson-box">
<h2>Lesson Checkpoint</h2>
<p>Before moving on, make sure you have:</p>
<ol>
<li>Created <code>index.html</code> in your repository.</li>
<li>Added headings, paragraphs, bold, italic, and line breaks.</li>
<li>Committed your changes to GitHub.</li>
<li>Viewed your updated page on GitHub Pages.</li>
</ol>
<p>When you're ready, continue to the next lesson using the navigation bar.</p>
</div>
</div>
</body>
</html>