-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
452 lines (388 loc) · 14.4 KB
/
test.html
File metadata and controls
452 lines (388 loc) · 14.4 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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HTML5 All Tags</title>
<link href="./blanksheet.css" rel="stylesheet" />
</head>
<body>
<!-- Document Structure -->
<header>
<h1>HTML5 All Tags</h1>
<nav>
<ul>
<li><a href="#headings">Headings</a></li>
<li><a href="#text">Text</a></li>
<li><a href="#lists">Lists</a></li>
<li><a href="#tables">Tables</a></li>
<li><a href="#forms">Forms</a></li>
<li><a href="#media">Media</a></li>
<li><a href="#editable">Editable</a></li>
<li><a href="#interactive">Interactive</a></li>
</ul>
</nav>
</header>
<main>
<!-- Section 1: Headings & Structure -->
<section id="headings">
<h2>Headings & Structure</h2>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<article>
<h3>Article Example</h3>
<p>This is an independent article content.</p>
</article>
<aside>
<h3>Aside Content</h3>
<p>This is sidebar content.</p>
</aside>
<address>
Contact info:<br />
John Doe<br />
123 Street, City<br />
Email: [email protected]
</address>
<hgroup>
<h2>Main Title</h2>
<p>Subtitle using hgroup</p>
</hgroup>
</section>
<!-- Section 2: Text Tags -->
<section id="text">
<h2>Text Tags</h2>
<hr />
<p>
Regular paragraph with an <a href="#">inline link</a> and
<strong>strong text</strong> mixed together for testing inline elements within flowing
content.
</p>
<p><strong>Bold text using strong</strong></p>
<p><b>Bold text using b</b></p>
<p><em>Italic text using em</em></p>
<p><i>Italic text using i</i></p>
<p><u>Underlined text using u</u></p>
<p><s>Strikethrough text using s</s></p>
<p><mark>Highlighted text</mark></p>
<p><small>Small text</small></p>
<p><del>Deleted text</del></p>
<p><ins>Inserted text</ins></p>
<p>Text with <sub>subscript</sub></p>
<p>Text with <sup>superscript</sup></p>
<p><abbr title="World Health Organization">WHO</abbr></p>
<p><cite>Citation text</cite></p>
<p><dfn>Definition term</dfn></p>
<p><q>Inline quotation using q</q></p>
<p><code>Code text</code></p>
<p><kbd>Keyboard input</kbd></p>
<p><samp>Sample output</samp></p>
<p><var>Variable</var></p>
<p><time datetime="2026-01-01">January 1, 2026</time></p>
<p><data value="42">Forty-two</data></p>
<p>Text direction: <bdi>مرحبا</bdi> embedded</p>
<p><bdo dir="rtl">Right to left text</bdo></p>
<p>Long<wbr />wordwith<wbr />breakpoints</p>
<p>
<ruby> 汉 <rp>(</rp><rt>hàn</rt><rp>)</rp> 字 <rp>(</rp><rt>zì</rt><rp>)</rp> </ruby>
</p>
<pre>
Preformatted
text with
spacing</pre
>
<blockquote>
This is a block quote.
<footer>- Author Name</footer>
</blockquote>
</section>
<!-- Section 3: Lists -->
<section id="lists">
<h2>Lists</h2>
<h3>Unordered List</h3>
<ul>
<li>First item</li>
<li>Second item</li>
<li>
Third item with nested list
<ul>
<li>Nested item 1</li>
<li>Nested item 2</li>
</ul>
</li>
<li>Fourth item</li>
</ul>
<h3>Ordered List</h3>
<ol>
<li>First item</li>
<li>Second item</li>
<li>
Third item with nested list
<ol>
<li>Nested item 1</li>
<li>Nested item 2</li>
</ol>
</li>
<li>Fourth item</li>
</ol>
<h3>Definition List</h3>
<dl>
<dt>Term 1</dt>
<dd>Definition for term 1</dd>
<dt>Term 2</dt>
<dd>Definition for term 2</dd>
<dd>Additional definition for term 2</dd>
</dl>
<h3>Menu</h3>
<menu>
<li>Menu item 1</li>
<li>Menu item 2</li>
<li>Menu item 3</li>
</menu>
</section>
<!-- Section 4: Table Tags -->
<section id="tables">
<h2>Table Tags</h2>
<table>
<caption>
Table Caption
</caption>
<colgroup>
<col />
<col />
<col />
</colgroup>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data 1</td>
<td>Data 2</td>
<td rowspan="2">Rowspan</td>
</tr>
<tr>
<td>Data 4</td>
<td>Data 5</td>
</tr>
<tr>
<td colspan="2">Colspan</td>
<td>Data 9</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Footer 1</td>
<td>Footer 2</td>
<td>Footer 3</td>
</tr>
</tfoot>
</table>
</section>
<!-- Section 5: Form Tags -->
<section id="forms">
<h2>Form Tags</h2>
<form action="#" method="post">
<fieldset>
<legend>Text Inputs</legend>
<label for="text-input">Text:</label>
<input
type="text"
id="text-input"
name="text-input"
placeholder="Text input"
/><br /><br />
<label for="password">Password:</label>
<input
type="password"
id="password"
name="password"
placeholder="Password input"
/><br /><br />
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Email input" /><br /><br />
<label for="url">URL:</label>
<input type="url" id="url" name="url" placeholder="URL input" /><br /><br />
<label for="tel">Tel:</label>
<input type="tel" id="tel" name="tel" placeholder="Tel input" /><br /><br />
<label for="search">Search:</label>
<input type="search" id="search" name="search" placeholder="Search input" /><br /><br />
<label for="number">Number:</label>
<input type="number" id="number" name="number" placeholder="Number input" /><br /><br />
<label for="textarea">Textarea:</label><br />
<textarea
id="textarea"
name="textarea"
rows="4"
cols="50"
placeholder="Textarea placeholder"
></textarea>
</fieldset>
<fieldset>
<legend>Date & Time Inputs</legend>
<label for="date">Date:</label>
<input type="date" id="date" name="date" /><br /><br />
<label for="datetime-local">Datetime-local:</label>
<input type="datetime-local" id="datetime-local" name="datetime-local" /><br /><br />
<label for="month">Month:</label>
<input type="month" id="month" name="month" /><br /><br />
<label for="week">Week:</label>
<input type="week" id="week" name="week" /><br /><br />
<label for="time">Time:</label>
<input type="time" id="time" name="time" />
</fieldset>
<fieldset>
<legend>Other Inputs</legend>
<label for="color">Color:</label>
<input type="color" id="color" name="color" /><br /><br />
<label for="range">Range:</label>
<input type="range" id="range" name="range" /><br /><br />
<label for="file">File:</label>
<input type="file" id="file" name="file" /><br /><br />
<input type="hidden" name="hidden" value="hidden-value" />
<input type="checkbox" id="checkbox1" name="checkbox1" />
<label for="checkbox1">Checkbox 1</label>
<input type="checkbox" id="checkbox2" name="checkbox2" checked />
<label for="checkbox2">Checkbox 2 (checked)</label><br /><br />
<input type="radio" id="radio1" name="radio" value="1" />
<label for="radio1">Radio 1</label>
<input type="radio" id="radio2" name="radio" value="2" checked />
<label for="radio2">Radio 2 (checked)</label>
</fieldset>
<fieldset>
<legend>Select, Datalist & Output</legend>
<label for="select">Select:</label>
<select id="select" name="select">
<optgroup label="Group 1">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
</optgroup>
<optgroup label="Group 2">
<option value="3">Option 3</option>
<option value="4">Option 4</option>
</optgroup></select
><br /><br />
<label for="select-multiple">Select Multiple:</label>
<select id="select-multiple" name="select-multiple" multiple>
<option value="a">Option A</option>
<option value="b">Option B</option>
<option value="c">Option C</option></select
><br /><br />
<label for="datalist-input">Datalist:</label>
<input
list="browsers"
id="datalist-input"
name="datalist-input"
placeholder="Type to search"
/>
<datalist id="browsers">
<option value="Chrome"></option>
<option value="Firefox"></option>
<option value="Safari"></option>
<option value="Edge"></option></datalist
><br /><br />
<label for="output">Output:</label>
<output id="output" name="output">42</output>
</fieldset>
<fieldset>
<legend>Meters, Progress & Buttons</legend>
<label>Meter:</label>
<meter value="0.6">60%</meter><br /><br />
<label>Progress:</label>
<progress value="70" max="100">70%</progress><br /><br />
<button type="submit">Submit Button</button>
<button type="reset">Reset Button</button>
<button type="button">Regular Button</button><br /><br />
<input type="submit" value="Submit Input" />
<input type="reset" value="Reset Input" />
<input type="button" value="Button Input" />
<input type="image" src="https://placehold.co/80x30" alt="Image Input" />
</fieldset>
</form>
</section>
<!-- Section 6: Media & Embedded Tags -->
<section id="media">
<h2>Media & Embedded Tags</h2>
<figure>
<img src="https://placehold.co/600x400" alt="Placeholder image" />
<figcaption>Figure caption text</figcaption>
</figure>
<picture>
<source srcset="https://placehold.co/800x400" media="(min-width: 800px)" />
<source srcset="https://placehold.co/400x400" media="(min-width: 400px)" />
<img src="https://placehold.co/200x200" alt="Responsive image" />
</picture>
<img src="https://placehold.co/300x200" alt="Image with map" usemap="#image-map" />
<map name="image-map">
<area shape="rect" coords="0,0,150,100" href="#" alt="Left area" />
<area shape="rect" coords="150,0,300,100" href="#" alt="Right area" />
<area shape="circle" coords="150,150,50" href="#" alt="Circle area" />
</map>
<audio controls>
<source src="audio.mp3" type="audio/mpeg" />
Your browser does not support audio.
</audio>
<video width="320" height="240" controls>
<source src="video.mp4" type="video/mp4" />
<track kind="subtitles" src="subtitles.vtt" srclang="en" label="English" />
Your browser does not support video.
</video>
<canvas id="myCanvas" width="200" height="100">
Your browser does not support canvas.
</canvas>
<svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
</svg>
<iframe src="about:blank" width="300" height="150" title="Iframe example"></iframe>
<object data="https://placehold.co/200x100" type="image/png" width="200" height="100">
Object fallback text
</object>
<embed type="image/png" src="https://placehold.co/200x100" width="200" height="100" />
</section>
<!-- Section 7: Editable Content -->
<section id="editable">
<h2>Editable Content</h2>
<div contenteditable="true">This div is contenteditable. Try editing this text.</div>
<p contenteditable="true">This paragraph is contenteditable.</p>
<div contenteditable="false">This div has contenteditable="false" — not editable.</div>
</section>
<!-- Section 8: Interactive Tags -->
<section id="interactive">
<h2>Interactive Tags</h2>
<details>
<summary>Click to expand details</summary>
<p>Hidden content revealed by details/summary.</p>
</details>
<details open>
<summary>Already open details</summary>
<p>This details element is open by default.</p>
</details>
<!-- Inline dialog (no backdrop) -->
<dialog open>
<p>This is an open dialog element.</p>
</dialog>
<!-- Modal dialog — ::backdrop should be transparent -->
<button onclick="document.getElementById('modal-dialog').showModal()">
Open Modal Dialog
</button>
<dialog id="modal-dialog">
<p>Modal dialog. Backdrop should be transparent (no semi-transparent overlay).</p>
<button onclick="document.getElementById('modal-dialog').close()">Close</button>
</dialog>
</section>
</main>
<footer>
<p>Page Footer Content</p>
<noscript>
<p>JavaScript is disabled in your browser.</p>
</noscript>
</footer>
</body>
</html>