-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchapter2.html
More file actions
222 lines (200 loc) Β· 7.21 KB
/
chapter2.html
File metadata and controls
222 lines (200 loc) Β· 7.21 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chapter 2: HTML Elements</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2 class="chapter-header" id="heading">Chapter 2: HTML ELEMENTS</h2>
<div class="tag-section">
<h3>Headings</h3>
<div class="tag-demo">
<div class="doctype-demo">
<p>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3 style="margin-bottom: 0%;">Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</p>
</div>
</div>
</div>
<div class="tag-section">
<h3>Paragraphs</h3>
<div class="tag-demo">
<div class="html-demo">
<p>
<p>This is the first paragraph.</p>
</p>
</div>
</div>
</div>
<div class="tag-section">
<h3>Hyperlinks</h3>
<div class="tag-demo">
<div class="head-demo">
<p><a href="home.html">Link to home Page.</a></p>
<p><a href="home.html" target="_blank">Link to home Page in another tab.</a></p>
<p><a href="#heading">Internal link to Heading.</a></p>
<p><a href="HTML-CSS fav icon.jpg" download="">Download link of fav-icon.</a></p>
</div>
</div>
</div>
<div class="tag-section">
<h3>Images</h3>
<div class="tag-demo">
<div class="head-demo">
<p>
<h5>Resize the browser to load different images.</h5>
<picture>
<source media="(min-width:900px)" srcset="HTML-CSS fav icon.jpg" />
<source media="(min-width:500px)" srcset="flower.jpg" />
<img src="HTML-CSS fav icon.jpg" alt="fav-icon" width="150" height="150" />
</picture>
</p>
<p>
<h5>An image map having clickable area.</h5>
<img src="HTML-CSS fav icon.jpg" alt="fav-icon" usemap="#nav-bar"width="150" height="150" />
<map name="nav-bar"><area shape="rect" coords="20,20,80,60" alt="fav-icon" href="#heading" /><area shape="circle" coords="120,40,20" alt="Coffee" href="#heading" /></map>
</p>
</div>
</div>
</div>
<div class="tag-section">
<h3>Lists</h3>
<div class="tag-demo">
<div class="head-demo">
<p>
<p>Unordered list</p><hr>
<ul style="padding-left: 7px;">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul><br>
<p>Ordered list</p><hr>
<ol style="padding-left: 7px;">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol><br>
<p>Descroption list</p><hr>
<dl>
<dt>HTML</dt>
<dd>is the standard markup language for Web pages.</dd>
<dt>CSS</dt>
<dd>is the language we use to style an HTML document.</dd>
<dt>JavaScript</dt>
<dd>is the world's most popular programming language.</dd>
</dl>
</p>
</div>
</div>
</div>
<div class="tag-section">
<h3>Tables</h3>
<div class="tag-demo">
<div class="head-demo">
<p><table border="1">
<caption> Student Info Table</caption>
<!-- Column group -->
<colgroup>
<col span="1" style="background:#d1fae5;">
<col span="1" style="background:#fef9c3;">
<col span="1" style="background:#fee2e2;">
</colgroup>
<!-- Table head -->
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Batch</th>
</tr>
</thead>
<!-- Table body -->
<tbody>
<tr>
<td rowspan="2">1289110</td>
<td>Tamima</td>
<td>Web-2025</td>
</tr>
<tr>
<td>Mollick Tuly</td>
<td>Design-2025</td>
</tr>
</tbody>
<!-- Table footer -->
<tfoot>
<tr>
<td colspan="3">Β© 2025 Student Database</td>
</tr>
</tfoot>
</table>
</p>
</div>
</div>
</div>
<div class="tag-section">
<h3>Breaks</h3>
<div class="tag-demo">
<div class="head-demo">
<p>A line break here.<br />A Thematic Breaking here <hr></p>
</div>
</div>
</div>
<div class="tag-section">
<h3>Progress Bars</h3>
<div class="tag-demo">
<div class="head-demo">
<p>Uploading:
<progress value="60" max="100"></progress>60%
</p>
<p>Disk usage:
<meter value="60" max="120"></meter>
60GB of 120GB
</p>
</div>
</div>
</div>
<div class="tag-section">
<h3>Computer Code</h3>
<div class="tag-demo">
<div class="head-demo">
<p>
<p>This is a piece of JavaScript code:</p>
<code>var x = 10;</code>
<pre>Text in a pre element is displayedin the browser's default monospace font,and it preserves both spacesand line breaks.
</pre>
</p>
</div>
</div>
</div>
<div class="tag-section">
<h3>Iframes</h3>
<div class="tag-demo">
<div class="head-demo">
<p><h1>IsDB Website in Iframe</h1>
<iframe style="width: 100%; height: 50vmin;" src="https://isdb-bisew.org">
</iframe>
</p>
</div>
</div>
</div>
<div class="tag-section">
<h3>HTML Entities</h3>
<div class="tag-demo">
<div class="head-demo">
<p>
In coding, we often use <, >, &, and even a non-breaking space.
A book might show prices like 50 ¢, 10 £, 100 ¥, or 20 €.
Brands are protected by ©, ®, and ™ symbols.
To show directions, arrows are useful: ← ↑ → ↓.
</p>
</div>
</div>
</div>
</body>
</html>