-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
713 lines (675 loc) · 32 KB
/
Copy pathindex.html
File metadata and controls
713 lines (675 loc) · 32 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
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Technical Documentation Page." />
<title>HTML Documentation</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<main id="main-doc" role="main">
<header>
<h1 id="title">HTML Documentation</h1>
<p class="font-3">
This technical documentation provides a clear guide to HTML, covering its basic structure, elements, and key
components used in web development.
</p>
<nav id="navbar">
<h3 id="nav-header" class="font-3">Sections</h3>
<a href="#Introduction" class="nav-link">Introduction</a>
<a href="#Basic_Structure" class="nav-link">Basic Structure</a>
<a href="#Elements_and_Tags" class="nav-link"
>Elements<br />
& Tags</a
>
<a href="#Attributes" class="nav-link">Attributes</a>
<a href="#Headings_and_Paragraphs" class="nav-link"
>Headings<br />
& Paragraphs</a
>
<a href="#Lists_Ordered_and_Unordered" class="nav-link"
>Lists:<br />
Ordered &<br />
Unordered</a
>
<a href="#Links_and_Navigation" class="nav-link"
>Links &<br />
Navigation</a
>
<a href="#Images" class="nav-link">Images</a>
<a href="#Tables" class="nav-link">Tables</a>
<a href="#Forms_and_Input" class="nav-link"
>Forms<br />
& Inputs</a
>
</nav>
</header>
<section id="Introduction" class="main-section">
<header>
<h2 class="font-2"><Introduction></h2>
<p class="font-4">
HTML, or Hypertext Markup Language, is the backbone of web development. It provides the structure for web
pages, allowing developers to format text, embed images, create links, and organize content.
</p>
</header>
<p class="font-4">
HTML consists of elements represented by tags such as <b><code class="cod-2"><html></code></b
>, <b><code class="cod-2"><head></code></b
>, <b><code class="cod-2"><body></code></b
>, and more. These tags structure content and give instructions to the browser on how to display the page.
</p>
</section>
<section id="Basic_Structure" class="main-section">
<header>
<h2 class="font-2"><Basic Structure></h2>
<p class="font-4">
The basic structure of an HTML document includes a doctype declaration, an HTML tag, and essential child
elements such as <b><code class="cod-2"><head></code></b> and
<b><code class="cod-2"><body></code></b
>. These elements form the foundation for any HTML page.
</p>
</header>
<p class="font-4">Here's a simple example of the basic structure of an HTML document:</p>
<pre><code class="cod-1">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page Title</title>
</head>
<body>
<h1>Welcome to the Basic HTML Structure</h1>
<p>This is a simple HTML page</p>
</body>
</html>
</code></pre>
</section>
<section id="Elements_and_Tags" class="main-section">
<header>
<h2 class="font-2"><Elements and Tags></h2>
<p class="font-4">
In HTML, elements are the building blocks of a webpage, typically consisting of an opening tag, content, and
a closing tag. Tags tell the browser how to display content. For example, the
<b><code class="cod-2"><h1></code></b> tag defines a top-level heading, and the
<b><code class="cod-2"><p></code></b> tag defines a paragraph.
</p>
</header>
<p class="font-4">
Some elements are void elements, meaning they don’t have content and don’t require a closing tag. These
self-closing elements perform a specific function. Examples include the
<b><code class="cod-2"><img></code></b> tag for images and the
<b><code class="cod-2"><br></code></b> tag for line breaks. Void elements are used when no surrounding
content is needed, so they close immediately after the opening tag.
</p>
</section>
<section id="Attributes" class="main-section">
<header>
<h2 class="font-2"><Attributes></h2>
<p class="font-4">
HTML attributes provide additional information about HTML elements. They are used to modify the behavior or
style of an element or provide additional functionality. Attributes are always written within the opening
tag of an element and consist of a name and a value pair.
</p>
</header>
<p class="font-4">Some of the most commonly used attributes in HTML are:</p>
<ul class="font-4">
<li>
<strong class="b1">id:</strong> Assigns a unique identifier to an element, which can be used for styling or
referencing it in JavaScript.<br />
<span>Example: </span><code class="cod-2"><div id="header">...</div></code>
</li>
<li>
<strong class="b1">class:</strong> Allows you to assign one or more class names to an element. These class
names are used by CSS to apply styles to elements.<br />
<span>Example: </span><code class="cod-2"><div class="container"<...</div></code>
</li>
<li>
<strong class="b1">href (Hyperlink Reference):</strong> Is used to specify the URL for links (<code
><a></code
>
tags).<br />
<span>Example: </span
><code class="cod-2"><a href="https://www.example.com"<Click here</a<</code>
</li>
<li>
<strong class="b1">style:</strong> Allows you to directly apply CSS styles to an element.<br />
<span>Example: </span><code class="cod-2"><p style="color: blue;"<This text is blue.</p< </code>
</li>
</ul>
</section>
<section id="Headings_and_Paragraphs" class="main-section">
<header>
<h2 class="font-2"><Headings and Paragraphs></h2>
<p class="font-4">
Headings and paragraphs are fundamental elements in HTML, used to structure content and make it more
readable. They help organize the text and give it a clear hierarchy, which improves both user experience and
accessibility.
</p>
</header>
<p class="font-4">
Headings in HTML range from <b><code class="cod-2"><h1></code></b> to
<b><code class="cod-2"><h6></code></b
>, with <b><code class="cod-2"><h1></code></b> being the highest level, usually reserved for the main
title of the page, and <b><code class="cod-2"><h6></code></b> for the least important headings. Each
level should be used to represent a different level of content importance.
</p>
<pre><code class="cod-1">
<h1>This is a level 1 heading</h1>
<h2>This is a level 2 heading</h2>
<h3>This is a level 3 heading</h3>
</code></pre>
<p class="font-4">
Here's an example of how headings and paragraphs are used together to create a well-structured document:
</p>
<pre><code class="cod-1">
<h1>HTML Basics</h1>
<p>HTML is the language used to create web pages.</p>
<h2>Headings</h2>
<p>Headings are used to create titles and organize content.</p>
<h2>Paragraphs</h2>
<p>Paragraphs group sentences into blocks of text for readability.</p>
</code></pre>
</section>
<section id="Lists_Ordered_and_Unordered" class="main-section">
<header>
<h2 class="font-2"><Lists: Ordered and Unordered></h2>
<p class="font-4">
In HTML, lists are used to group related items together. There are two main types of lists: ordered lists
and unordered lists.
</p>
</header>
<ul class="font-4">
<li>
<p>
<strong class="b1">Ordered Lists</strong> are used when the sequence of items is important. They are
created with the <b><code class="cod-2"><ol></code></b> tag, and each item is wrapped in the
<b><code class="cod-2"><li></code></b> tag. By default, ordered lists display numbers (1, 2, 3,
etc.) to indicate their position in the sequence. This makes them ideal for instructions, rankings, or
processes that need to be followed in a specific order.<br />
Example of an ordered list:
</p>
<pre><code class="cod-1">
<ol>
<li>Preheat the oven to 350°F (175°C).</li>
<li>Mix the flour and sugar in a bowl.</li>
<li>Bake for 20 minutes or until golden brown.</li>
</ol>
</code></pre>
</li>
<li>
<p>
<strong class="b1">Unordered Lists</strong> are used when the order of items does not matter. They are
created with the <b><code class="cod-2"><ul></code></b> tag, and each item is wrapped in the
<b><code class="cod-2"><li></code></b> tag. By default, unordered lists display bullet points
instead of numbers. These lists are ideal for listing items where the sequence isn’t important, such as
product features or general options.<br />
Example of an unordered list:
</p>
<pre><code class="cod-1">
<ul>
<li>Fast performance</li>
<li>High-quality display</li>
<li>Long battery life</li>
</ul>
</code></pre>
</li>
</ul>
</section>
<section id="Links_and_Navigation" class="main-section">
<header>
<h2 class="font-2"><Links and Navigation></h2>
<p class="font-4">
Links and navigation form the backbone of web design, allowing users to move seamlessly between pages and
access key areas of a website. They ensure a smooth and intuitive browsing experience, making it easy for
visitors to find the information or resources they need. A well-designed navigation system is crucial for
usability, accessibility, and overall site functionality.
</p>
</header>
<p class="font-4">
In HTML, links are created using the <b><code class="cod-2"><a></code></b> (anchor) element. This
element requires the <b><code class="cod-2"> href</code></b> attribute, which defines the destination URL of
the page or resource. For example:
</p>
<pre><code class="cod-1">
<a href="https://example.com">Visit Example</a>
</code></pre>
<p class="font-4">
Some of the most commonly used attributes with the <strong><code><a></code></strong> element include:
</p>
<ul class="font-4">
<li>
<strong class="b1">href (Hyperlink Reference):</strong> Specifies the URL of the destination the link points
to.
</li>
<li>
<strong class="b1">target:</strong> Defines where the linked document will open. By default, it uses
<code class="cod-2">_self</code>, which opens the link in the same tab. Alternatively, using
<code class="cod-2">_blank</code> opens the link in a new tab, allowing users to retain their place on the
current page while viewing the linked content.
</li>
<li>
<strong class="b1">rel (Relationship):</strong> Specifies the relationship between the current page and the
linked document. Often used with <code class="cod-2">target="_blank"</code> for security purposes, such as
adding <code class="cod-2">rel="noopener noreferrer"</code>.
</li>
<li>
<strong class="b1">title:</strong> Adds additional information about the link, often displayed as a tooltip
when the user hovers over it.
</li>
<li>
<strong class="b1">download:</strong> Allows the linked resource (like a file) to be downloaded instead of
opened in the browser.
</li>
</ul>
<p class="font-4">
Now, let’s talk about the <b><code class="cod-2"><nav></code></b> element.<br />
The <b><code class="cod-2"><nav></code></b> element is a semantic HTML5 element used to define a block
of navigation links on a webpage. It typically contains primary site navigation, such as menus or links to key
sections of the site. Using <b><code class="cod-2"><nav></code></b> enhances accessibility and helps
search engines understand the structure of a webpage, improving SEO. It's an essential tool for creating a
clear and functional navigation system.
</p>
<p class="font-4">
Consider a documentation page for HTML. A well-structured navigation menu at the top can provide quick access
to various key sections, such as Introduction or Basic Structure. Here's how you might implement this using
the <b><code class="cod-2"><nav></code></b> element:
</p>
<pre><code class="cod-1">
<header>
<nav>
<a href="#introduction">Introduction</a>
<a href="#basic-structure">Basic Structure</a>
<a href="#elements-tags">Elements and Tags</a>
</nav>
</header>
<section id="introduction">
<h2>Introduction</h2>
<p>HTML, or Hypertext Markup Language, is...</p>
</section>
<section id="basic-structure">
<h2>Basic Structure</h2>
<p>The basic structure of an HTML document...</p>
</section>
<section id="elements-tags">
<h2>Elements and Tags</h2>
<p>In HTML, elements are the building blocks of...</p>
</section>
</code></pre>
</section>
<section id="Images" class="main-section">
<header>
<h2 class="font-2"><Images></h2>
<p class="font-4">
Images play a crucial role in web design by enhancing the visual appeal of a webpage, conveying information,
and improving user engagement.
</p>
</header>
<p class="font-4">
To add an image in HTML, you use the <b><code class="cod-2"><img></code></b> element. Unlike most other
HTML elements, the <b><code class="cod-2"><img></code></b> tag is a void element, or self-closing,
meaning it doesn't require a closing tag.
</p>
<p class="font-4">
Some of the most commonly used attributes with the <b><code class="cod-2"><img></code></b> element
include:
</p>
<ul class="font-4">
<li>
<strong class="b1">src (Source):</strong> Is the most important attribute and specifies the path to the
image you want to display. It can point to an image on your website or an external image hosted
elsewhere.<br />
<span>Example: </span><code class="cod-2"><img src="logo.png"></code>
</li>
<li>
<strong class="b1">alt (Alternative Text):</strong> Is used to describe the image for users who cannot see
it, including those using screen readers or in cases where the image doesn't load. This improves
accessibility and ensures all users can understand the content of the image.<br />
<span>Example: </span
><code class="cod-2"
><img src="photo.jpg" alt="A beautiful sunset over the mountains"></code
>
</li>
<li>
<strong class="b1">width and height:</strong> You can specify the size of the image using the
<code>width</code> and <code>height</code> attributes, either in pixels or percentage. This helps control
the image's display size on the page.<br />
<span>Example: </span
><code class="cod-2"
><img src="photo.jpg" width="500" height="300"></code
>
</li>
<li>
<strong class="b1">title:</strong> Can provide additional information about the image. This information is
typically displayed as a tooltip when the user hovers over the image.<br />
<span>Example: </span
><code class="cod-2"><img src="photo.jpg" title="Click for more details"></code>
</li>
</ul>
</section>
<section id="Tables" class="main-section">
<header>
<h2 class="font-2"><Tables></h2>
<p class="font-4">
Tables are essential for organizing data in rows and columns on web pages. They allow for a clear,
structured way to display information such as financial reports, schedules, or any data that fits a tabular
format. When used correctly, tables can enhance readability and make complex data easier to interpret.
</p>
</header>
<p class="font-4">
To create a table in HTML, you use the <b><code class="cod-2"><table></code></b> element, along with
various other elements to define rows, headers, and cells.
</p>
<p class="font-4">Key HTML Elements for Tables:</p>
<ul class="font-4">
<li>
<strong class="b1"><code class="cod-2"><table></code>:</strong> This is the container element that
holds the entire table structure.
</li>
<li>
<strong class="b1"
><code class="cod-2"><thead></code>, <code class="cod-2"><tbody></code>, and
<code class="cod-2"><tfoot></code>:</strong
>
These elements are used to group the header, body, and footer sections of a table, respectively. They help
in structuring the table for better accessibility and usability.
</li>
<li>
<strong class="b1"><code class="cod-2"><tr></code> (table row):</strong> Is used to define a row of
cells in the table.
</li>
<li>
<strong class="b1"><code class="cod-2"><th></code> (table header):</strong> Is used to define a cell
as a header. Typically, it is bold and centered by default.
</li>
<li>
<strong class="b1"><code class="cod-2"><td></code> (table data):</strong> Is used to define a cell
that contains regular data in the table.
</li>
<li>
<strong class="b1"><code class="cod-2"><caption></code>:</strong> This is an optional element that
provides a title or description for the table, displayed above or below the table.
</li>
</ul>
<p class="font-4">
<strong class="b1">Code Example:</strong><br />
The following HTML code creates a basic table with three rows and three columns.
</p>
<pre><code class="cod-1">
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1, Col 1</td>
<td>Row 1, Col 2</td>
<td>Row 1, Col 3</td>
</tr>
<tr>
<td>Row 2, Col 1</td>
<td>Row 2, Col 2</td>
<td>Row 2, Col 3</td>
</tr>
<tr>
<td>Row 3, Col 1</td>
<td>Row 3, Col 2</td>
<td>Row 3, Col 3</td>
</tr>
</tbody>
</table>
</code></pre>
<p class="font-4">
<strong class="b1">Rendered Table:</strong><br />
Here’s how the above code will display as an actual table in a browser.
</p>
<table class="font-4">
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td class="td-1">Row 1, Col 1</td>
<td class="td-2">Row 1, Col 2</td>
<td class="td-1">Row 1, Col 3</td>
</tr>
<tr>
<td class="td-2">Row 2, Col 1</td>
<td class="td-1">Row 2, Col 2</td>
<td class="td-2">Row 2, Col 3</td>
</tr>
<tr>
<td class="td-1">Row 3, Col 1</td>
<td class="td-2">Row 3, Col 2</td>
<td class="td-1">Row 3, Col 3</td>
</tr>
</tbody>
</table>
</section>
<section id="Forms_and_Input" class="main-section">
<header>
<h2 class="font-2"><Forms and Input></h2>
<p class="font-4">
Forms are key for collecting user data on websites. HTML provides input elements that let users enter text,
select options, check boxes, or upload files. These simple inputs gather information like names, emails,
preferences, and feedback.
</p>
</header>
<p class="font-4">
Labels make forms more user-friendly and accessible. The <b><code class="cod-2"><label></code></b> tag,
paired with the <b><code class="cod-2">for</code></b> attribute, connects directly to its input, helping users
understand the required information and making the form easier to navigate, especially for screen reader
users.<br />
A typical form contains the following parts:
</p>
<form class="font-4">
<ul>
<li>
<p>
<strong class="b1">Text Inputs:</strong> The
<code class="cod-2"><input type="text"></code> element is used for collecting textual information
from users, such as names, email addresses, or other simple text. It's one of the most commonly used
form fields.
</p>
<p>Code Example:</p>
<pre><code class="cod-1">
<form>
<label for="username">Username:</label>
<input type="text" id="username" name="username"
placeholder="Enter your username">
</form>
</code></pre>
<p>Rendered Example:</p>
<fieldset class="render">
<label for="username">Username:</label>
<input
type="text"
id="username"
class="render-input"
name="username"
placeholder="Enter your username" />
</fieldset>
</li>
<li>
<p>
<strong class="b1">Email Input:</strong> The
<code class="cod-2"><input type="email"></code> element is specifically designed for gathering
email addresses. It automatically checks that the input follows the correct email format, ensuring it
contains an "@" symbol and a domain name (e.g., user@example.com).
</p>
<p>Code Example:</p>
<pre><code class="cod-1">
<form>
<label for="email">Email:</label>
<input type="email" id="email" name="email"
placeholder="Enter your email address">
</form>
</code></pre>
<p>Rendered Example:</p>
<fieldset class="render">
<label for="email">Email:</label>
<input
type="email"
id="email"
class="render-input"
name="email"
placeholder="Enter your email address" />
</fieldset>
</li>
<li>
<p>
<strong class="b1">Password Inputs:</strong> The
<code class="cod-2"><input type="password"></code> element is used to collect sensitive
information, such as passwords. It masks the entered characters to keep the information secure.
</p>
<p>Code Example:</p>
<pre><code class="cod-1">
<form>
<label for="password">Password:</label>
<input type="password" id="password" name="password"
placeholder="Enter your password">
</form>
</code></pre>
<p>Rendered Example:</p>
<fieldset class="render">
<label for="password">Password:</label>
<input
type="password"
id="password"
class="render-input"
name="password"
placeholder="Enter your password" />
</fieldset>
</li>
<li>
<p>
<strong class="b1">Checkboxes:</strong> The
<code class="cod-2"><input type="checkbox"></code> element allows users to select one or more
options from a list. It's ideal for situations where multiple selections are allowed, such as choosing
hobbies or preferences.
</p>
<p>Code Example:</p>
<pre><code class="cod-1">
<form>
<label for="hobby1">
<input type="checkbox" id="hobby1"
name="hobbies" value="reading"> Reading
</label>
<label for="hobby2">
<input type="checkbox" id="hobby2"
name="hobbies" value="traveling"> Traveling
</label>
<label for="hobby3">
<input type="checkbox" id="hobby3"
name="hobbies" value="gaming"> Gaming
</label>
</form>
</code></pre>
<p>Rendered Example:</p>
<fieldset class="render">
<label for="hobby1">
<input type="checkbox" id="hobby1" name="hobbies" value="reading" /> Reading
</label>
<label for="hobby2">
<input type="checkbox" id="hobby2" name="hobbies" value="traveling" /> Traveling
</label>
<label for="hobby3"> <input type="checkbox" id="hobby3" name="hobbies" value="gaming" /> Gaming </label>
</fieldset>
</li>
<li>
<p>
<strong class="b1">Radio Buttons:</strong> The
<code class="cod-2"><input type="radio"></code> element is used when users must select one option
from a set of choices. This is common in surveys or forms that require a single choice from predefined
options, such as selecting a size or preference.
</p>
<p>Code Example:</p>
<pre><code class="cod-1">
<form>
<label for="sizeSmall">
<input type="radio" id="sizeSmall" name="size"
value="small"> Small
</label>
<label for="sizeMedium">
<input type="radio" id="sizeMedium" name="size"
value="medium"> Medium
</label>
<label for="sizeLarge">
<input type="radio" id="sizeLarge" name="size"
value="large"> Large
</label>
</form>
</code></pre>
<p>Rendered Example:</p>
<fieldset class="render">
<label for="sizeSmall"> <input type="radio" id="sizeSmall" name="size" value="small" /> Small </label>
<label for="sizeMedium">
<input type="radio" id="sizeMedium" name="size" value="medium" /> Medium
</label>
<label for="sizeLarge"> <input type="radio" id="sizeLarge" name="size" value="large" /> Large </label>
</fieldset>
</li>
<li>
<p>
<strong class="b1">Select Dropdowns:</strong> The <code class="cod-2"><select></code> element
creates a dropdown list, which is useful when you have many options for the user to choose from, such as
selecting a country, language, or other categorized choices.
</p>
<p>Code Example:</p>
<pre><code class="cod-1">
<form>
<label for="country">Choose a country:</label>
<select id="country" name="country">
<option value="" disabled selected>
Choose your country</option>
<option value="france">France</option>
<option value="germany">Germany</option>
<option value="italy">Italy</option>
<option value="uk">United Kingdom</option>
</select>
</form>
</code></pre>
<p>Rendered Example:</p>
<fieldset class="render">
<label for="country">Choose a country:</label>
<select id="country" name="country" class="render-input">
<option value="" disabled selected>Choose your country</option>
<option value="france">France</option>
<option value="germany">Germany</option>
<option value="italy">Italy</option>
<option value="uk">United Kingdom</option>
</select>
</fieldset>
</li>
<li>
<p>
<strong class="b1">Buttons and Submit:</strong> The <code class="cod-2"><button></code> element is
used for form actions, such as submitting data. The <code class="cod-2">type="submit"</code> button
submits the form, while a <code class="cod-2">type="reset"</code> button can clear the form fields.
Custom buttons can also be used for additional actions like adding more fields.
</p>
<p>Code Example:</p>
<pre><code class="cod-1">
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</code></pre>
<p>Rendered Example:</p>
<fieldset id="field-buttom">
<button type="submit" id="submit">Submit</button>
<button type="reset" id="reset">Reset</button>
</fieldset>
</li>
</ul>
</form>
</section>
</main>
</body>
</html>