forked from muthu1809/HTML-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2
392 lines (306 loc) · 10.6 KB
/
2
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
<link rel="icon" type="image/x-icon" href="linux.jpeg"> <!-- இங்கே .ico file கொடுப்பார்கள் -->
https://favicon.io/
https://www.favicon-generator.org/
<p> Hi, I'm from <mark>Chennai </mark></p>
<img src="gnu.jpeg"
alt="Tux the Penguin">
<img src="gn.jpeg"
alt="Tux the Penguin">
<img src="gnu.jpeg"
alt="Tux The Penguin"
width="400"
height="341">
<img src="linux.jpeg"
alt=""
width="400"
height="341"
title="Tux is a penguin character and the official brand character of the Linux kernel.">
<figure>
<img src="linux.jpeg"
alt="Tux is a penguin character and the official brand character of the Linux kernel."
width="400"
height="341">
<figcaption>Linux Logo - Tux</figcaption>
</figure>
Video and audio on the web:
<video src="rabbit.webm" controls>
<p>Your browser doesn't support HTML5 video. Here is a <a href="rabbit.webm">link to the video</a> instead.</p>
</video>
<video controls>
<source src="rabbit.mp4" type="video/mp4">
<source src="rabbit.webm" type="video/webm">
<p>Your browser doesn't support HTML5 video. Here is a <a href="rabbit.mp4">link to the video</a> instead.</p>
</video>
<video controls width="400" height="400"
autoplay loop muted preload="auto"
poster="rabbit.jpeg"> <!-- try preload="none" -->
<source src="rabbit.mp4" type="video/mp4">
<source src="rabbit.webm" type="video/webm">
<p>Your browser doesn't support HTML video. Here is a <a href="rabbit320.mp4">link to the video</a> instead.</p>
</video>
<audio controls>
<source src="viper.mp3" type="audio/mp3">
<source src="viper.ogg" type="audio/ogg">
<p>Your browser doesn't support HTML5 audio. Here is a <a href="viper.mp3">link to the audio</a> instead.</p>
</audio>
Embedding Technologies:
<iframe> Embedding an entire web document inside another one
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d31100.014332286864!2d80.22096644999999!3d13.003685749999999!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xc0605297cdd52a98!2z4K6q4K6v4K6_4K6y4K6V4K6u4K-N!5e0!3m2!1sta!2sin!4v1654616701684!5m2!1sta!2sin" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/g4VubmbY5So" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Courtesy: Chris David Mills
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Iframe with basic details</title>
</head>
<body>
<h1>Iframe with basic details</h1>
<iframe src="https://developer.mozilla.org/en-US/docs/Glossary" width="100%" height="500" frameborder="0" allowfullscreen sandbox>
<p> <a href="https://developer.mozilla.org/en-US/docs/Glossary"> Fallback link for browsers that don't support iframes </a> </p>
</iframe>
</body>
</html>
Sandbox:
The sandbox attribute is used to enable security restrictions for iframes with untrusted content (such as scripts and forms).
Browser Developer Tools:
Shortcut: Ctrl+Shift+I or F12
https://en.wikipedia.org/wiki/Sandbox_(computer_security)
https://ta.wikipedia.org/wiki/%E0%AE%AA%E0%AE%AF%E0%AE%A9%E0%AE%B0%E0%AF%8D:Info-farmer/%E0%AE%AE%E0%AE%A3%E0%AE%B2%E0%AF%8D%E0%AE%A4%E0%AF%8A%E0%AE%9F%E0%AF%8D%E0%AE%9F%E0%AE%BF
Clickjacking
Clickjacking is an interface-based attack that tricks website users into unwittingly clicking on malicious links. In clickjacking, the attackers embed their malicious links into buttons or legitimate pages in a website. In an infected Site, whenever a user clicks on a legitimate link, the attacker gets the confidential information of that user, which ultimately compromises the user's privacy on the Internet.
Courtesy: https://developer.mozilla.org/en-US/docs/Glossary/Clickjacking
HTTPS:
https://letsencrypt.org/
Table Creation:
<table>
<td>first cell.</td>
</table>
<table>
<td>first cell</td>
<td>second cell</td>
<td>third cell</td>
<td>fourth cell</td>
</table>
<table>
<tr>
<td>first cell</td>
<td>second cell</td>
<td>third cell</td>
<td>fourth cell</td>
</tr>
</table>
<table>
<tr>
<th>first heading</th>
<th>second heading</th>
<th>third heading</th>
<th>fourth heading</th>
</tr>
<td>first cell</td>
<td>second cell</td>
<td>third cell</td>
<td>fourth cell</td>
</tr>
</table>
<table>
<caption>Monthly Electricity Bill</caption>
<tr>
<th>Month</th>
<th>Units</th>
</tr>
<tr>
<td>January</td>
<td>100</td>
</tr>
<tr>
<td>February</td>
<td>50</td>
</tr>
</table>
<table>
<colgroup>
<col span="2" style="background-color:blue">
<col style="background-color:red">
</colgroup>
<tr>
<th>Publisher</th>
<th>Title</th>
<th>Link</th>
</tr>
<tr>
<td>Kaniyam</td>
<td>CSS in Tamil</td>
<td><a href="http://www.kaniyam.com/download/learn-css-in-tamil.pdf/"> எளிய தமிழில் CSS</a></td>
</tr>
<tr>
<td>Kaniyam</td>
<td>JavaScript in Tamil</td>
<td><a href="https://freetamilebooks.com/download/%e0%ae%8e%e0%ae%b3%e0%ae%bf%e0%ae%af-%e0%ae%a4%e0%ae%ae%e0%ae%bf%e0%ae%b4%e0%ae%bf%e0%ae%b2%e0%af%8d-javascript-a4-pdf/"> எளிய தமிழில் ஜாவாஸ்கிரிப்ட்</a></td>
</tr>
</table>
Nested Table:
<table id="table1">
<tr>
<th>title1</th>
<th>title2</th>
<th>title3</th>
</tr>
<tr>
<td id="nested">
<table id="table2">
<tr>
<td>cell1</td>
<td>cell2</td>
<td>cell3</td>
</tr>
</table>
</td>
<td>cell2</td>
<td>cell3</td>
</tr>
<tr>
<td>cell4</td>
<td>cell5</td>
<td>cell6</td>
</tr>
</table>
Check Boxes:
<h1>Check the Course you wish</h1>
<label class="container">Java
<input type="checkbox" checked="checked">
</label>
<label class="container">Python
<input type="checkbox" id="P" >
</label>
<label class="container">Angular
<input type="checkbox" id="A" >
</label>
<label class="container">
React
<input type="checkbox" >
</label>
Radio Buttons:
<input type="radio" id="html" name="fav_language" value="HTML"> HTML
<input type="radio" id="css" name="fav_language" value="CSS"> CSS
<input type="radio" id="javascript" name="fav_language" value="JavaScript"> JavaScript
Input Box - Password:
<input type="text" id="fname" name="fname" value="Kathir"><br>
<label for="lname"><h3>Password:</h3></label><br>
<input type="password" id="lname" name="lname" value="Kumaran"><br><br>
Drop Down / Select Box
<label for="courses"><h2>Choose Course</h2></label>
<!--<select id="courses" name="courses">-->
<!--<select id="courses" name="courses" size="3">-->
<select id="courses" name="courses" size="4" multiple>
<option value="java" >Java </option>
<option value="python" selected>Python</option>
<option value="ruby">Ruby</option>
<option value=".net">.NET</option>
</select>
HTML Block and Inline Elements:
Block elements எப்போதும் புது வரியில் தொடங்கும்.
எ.கா. <p> <div>
<p> I am a block element and will start in new line
<div> I am a block element and will start in new line
Inline Elements புது வரியில் தொடங்கா.
எ.கா. <span>
I am an Inline Element <span> and will not start in new line. </span>
<p>I like <span style="color:red">red</span> color</p>
Web Form:
ஒரு பயனர், இணையத்தளம் ஒன்றிற்கு அனுப்புகின்ற தரவுகள்
Browse கொடுத்து
accept:
------
<p>
<label for="soundFile">Select an audio file:</label>
<input type="file" id="soundFile" accept="audio/*">
</p>
<p>
<label for="videoFile">Select a video file:</label>
<input type="file" id="videoFile" accept="video/*">
</p>
<p>
<label for="imageFile">Select some images:</label>
<input type="file" id="imageFile" accept="image/*" multiple>
</p>
alt:
----
<form action="/index.jsp">
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname">
<input type="image" src="submit.gif" alt="ok" width="48" height="48">
</form>
autocomplete:
-----------
<form action="/index.jsp" autocomplete="on">
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname"><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" autocomplete="off"><br><br>
<input type="submit">
</form>
autofocus:
---------
<form action="/index.jsp" autocomplete="on">
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname" autofocus><br><br>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname"><br><br>
<input type="submit">
</form>
Input - Button:
--------------
<input class="favorite styled"
type="button"
value="Add to favorites">
இப்போது input type = "button" என்பதற்குப் பதிலாக, button tagஐயே பயன்படுத்துகிறார்கள்.
<button class="favorite styled"
type="button">
Add to favorites
</button>
Keyboard Shortcuts to Buttons:
<input type="button" value="Start machine" accesskey="s">
குறிப்பு:
Edge, IE, Chrome, Safari, Opera 15+: [ALT] + accesskey
Firefox: [ALT] [SHIFT] + accesskey
button ஐ disabled ஆக்குவது எப்படி?
<input type="button" value="Disable me" disabled>
datalist:
--------
recommended options கொடுக்கப் பயன்படும்;
<label for="sweet-choice">Choose a flavor:</label>
<input list="sweet-flavors" id="sweet-choice" name="sweet-choice" />
<datalist id="sweet-flavors">
<option value="லட்டு">
<option value="ஜிலேபி">
<option value="ஜாங்கிரி">
<option value="மைசூர்பாகு">
<option value="பாதுஷா">
</datalist>
range:
---------
<input type="range" list="tickmarks">
<datalist id="tickmarks">
<option value="0">
<option value="10">
<option value="20">
<option value="30">
</datalist>
color:
--------
<input type="color" list="redColors">
<datalist id="redColors">
<option value="#800000">
<option value="#8B0000">
<option value="#A52A2A">
<option value="#DC143C">
</datalist>
progress:
---------
<label for="file">Java</label>
<progress id="file" max="100" value="70"> 70% </progress> <br>
<label for="file">Html</label>
<progress id="file" max="100" value="80"> 80% </progress>