-
Notifications
You must be signed in to change notification settings - Fork 0
/
HTML_tejas.html
225 lines (180 loc) · 5.86 KB
/
HTML_tejas.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Comprehensive HTML Cheat Sheet</title>
<style>
/* Add custom styles here */
.custom-style {
color: #007569;
font-style: italic;
}
</style>
</head>
<body>
<!-- Basic Structure -->
<h1>Hello, World!</h1>
<p>This is a basic HTML document structure.</p>
<!-- Headings -->
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<!-- Paragraph -->
<p>This is a paragraph.</p>
<!-- Line Break -->
<p>This is a line<br>break.</p>
<!-- Strong and Emphasis -->
<p><strong>Bold text</strong> and <em>italicized text</em>.</p>
<!-- Lists -->
<ul>
<li>Unordered List Item 1</li>
<li>Unordered List Item 2</li>
</ul>
<ol>
<li>Ordered List Item 1</li>
<li>Ordered List Item 2</li>
</ol>
<!-- Definition List -->
<dl>
<dt>Definition Term 1</dt>
<dd>Definition Description 1</dd>
<dt>Definition Term 2</dt>
<dd>Definition Description 2</dd>
</dl>
<!-- Anchor/Link -->
<a href="https://www.example.com" target="_blank" title="Visit Example">Visit Example</a>
<!-- Image -->
<img src="image.jpg" alt="Description of the image">
<!-- Form -->
<form action="/submit" method="post">
<!-- Text Input -->
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<br>
<!-- Password Input -->
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<br>
<!-- Email Input -->
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<br>
<!-- Checkbox -->
<input type="checkbox" id="subscribe" name="subscribe" value="yes">
<label for="subscribe">Subscribe to newsletter</label>
<br>
<!-- Radio Buttons -->
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label>
<br>
<!-- Textarea -->
<label for="message">Message:</label>
<textarea id="message" name="message" rows="4" cols="50" required></textarea>
<br>
<!-- Select Dropdown -->
<label for="country">Country:</label>
<select id="country" name="country">
<option value="india">India</option>
<option value="usa">United States</option>
<option value="uk">United Kingdom</option>
</select>
<br>
<!-- Submit Button -->
<input type="submit" value="Submit">
<input type="color" value="Submit">
<input type="date" value="Submit">
</form>
<!-- Table -->
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
</tr>
</table>
<!-- Div Container -->
<div>
<p>This is a div container.</p>
</div>
<!-- Span -->
<p>This is <span style="color: blue;">blue</span> text.</p>
<!-- Semantic Elements -->
<header>
<h1>Website Header</h1>
</header>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<article>
<h2>Article Title</h2>
<p>Content of the article.</p>
</article>
<section>
<h2>Section Title</h2>
<p>Content of the section.</p>
</section>
<footer>
<p>© 2023 My Website</p>
</footer>
<!-- Other Tags -->
<!-- Abbreviation -->
<p><abbr title="Hypertext Markup Language">HTML</abbr> is fun!</p>
<!-- Address -->
<address>
Written by John Doe.<br>
Visit us at Example Street.
</address>
<!-- Code -->
<p>Inline <code>code</code> example.</p>
<!-- Time -->
<p>Meeting at <time datetime="2023-11-01T09:00">9:00 AM</time>.</p>
<!-- Subscript and Superscript -->
<p>This is <sub>subscript</sub> and <sup>superscript</sup> text.</p>
<!-- Marked/Highlighted Text -->
<p>This is <mark>highlighted</mark> text.</p>
<!-- Deleted and Inserted Text -->
<p><del>Deleted</del> and <ins>inserted</ins> text.</p>
<!-- Horizontal Rule -->
<hr>
<!-- Comment -->
<!-- This is a comment -->
<!-- Rarely Used Tags -->
<!-- Figure and Figcaption -->
<figure>
<img src="figure-image.jpg" alt="Description of the figure">
<figcaption>Caption for the figure.</figcaption>
</figure>
<!-- Meter -->
<p>Progress: <meter value="0.6">60%</meter></p>
<!-- Progress -->
<p>Downloading: <progress value="70" max="100">70%</progress></p>
<!-- Time -->
<p>The time is <time>01:44</time>.</p>
<!-- Details and Summary -->
<details>
<summary>Click to show details</summary>
<p>Hidden details revealed!</p>
</details>
<!-- Mark -->
<p>Defined <mark class="custom-style">custom</mark> style.</p>
<!-- Iframe -->
<iframe src="https://www.example.com" width="600" height="400" title="Embedded Content"></iframe>
</body>
</html>