-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.html
More file actions
307 lines (285 loc) · 8.64 KB
/
basic.html
File metadata and controls
307 lines (285 loc) · 8.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- The below 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="keywords" content="HTML, CSS, XHTML, JavaScript">
<!--Refresh document every 30 seconds:-->
<meta http-equiv="refresh" content="30">
<!--for facebook-->
<meta property="og:image" content="image url or path here">
<meta property="og:description" content="Description here">
<meta property="og:title" content="Title here">
<!--page title-->
<title>This is basic html</title>
<!--icon-->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<!-- use external css-->
<link rel="stylesheet" type="text/css" href="css/style.css">
<!--use internal css-->
<style></style>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!--general block and inline -->
<div id="" class="" style="" title="" alt=""></div>
<span></span>
<label for="input-id"></label>
<!--h1-h6-->
<h1>Hello, world!</h1>
<!--paragraph -->
<p></p>
<pre></pre>
<!-- break line -->
<hr>
<br>
<!-- text format -->
<b></b>
<i></i>
<strong></strong>
<em></em>
<small></small>
<mark></mark>
<del></del>
<ins></ins>
<sup></sup>
<sub></sub>
<!-- quotation -->
<q></q>
<blockquote cite=""></blockquote>
<abbr title=""></abbr>
<address></address>
<!-- quote for title (name) of art work -->
<cite></cite>
<!-- computer code -->
<code>
x = 5;<br>
y = 6;<br>
z = x + y;
</code>
<!--keyboard input -->
<kbd>Ctrl + C</kbd>
<!-- program output -->
<samp>Err!</samp>
<!-- variable -->
<var></var>
<!-- Entities
< <
> >
& &
" "
' '
-->©
<!-- layout -->
<header></header>
<nav></nav>
<section></section>
<aside></aside>
<footer></footer>
<article></article>
<details>
1234
</details>
<summary></summary>
<main></main>
<time datetime=""></time>
<progress value="65" max="100"></progress>
<!-- link -->
<!--
target="_blank", target="_top", target="_self", target="_parent" <<< for new tab, top frame, self frame, parent frame( frame in frame )
target="frameName" <<< that link will open in a frame that have name="frameName"
href="URLpath#elementID"
-->
<a href="" target="_blank">link</a>
<!-- frame -->
<iframe height="300px" width="100%" src="demo_iframe.htm" name="iframe_a"></iframe>
<!-- image -->
<img src="" alt="" width="" height="128">
<!-- with caption -->
<figure>
<img src="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228">
<figcaption>Fig.1 - The Pulpit Rock, Norway.</figcaption>
</figure>
<!-- table -->
<table style="width:100%">
<!-- use caption -->
<caption>caption</caption>
<tr>
<th>Name</th>
<th colspan="2">Telephone</th>
</tr>
<tr>
<td rowspan="2 ">Bill Gates</td>
<td>55577854</td>
<td>55577855</td>
</tr>
<tr>
<td>55577854</td>
<td>55577855</td>
</tr>
</table>
<!-- grouping rows -->
<thead></thead>
<tfoot></tfoot>
<tbody></tbody>
<!-- list -->
<!-- list-style-type:disc, circle, square, none -->
<ul style="list-style-type:disc">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
<ul style="list-style-type:disc">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</ul>
<!-- type="1, A, a, I, i" -->
<ol type="1">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
<ol type="1">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</ol>
<!-- Form -->
<!-- Form attribute!
method="get"
autocomplete="on" or "off"
novalidate >> novalidate required email bla bla bla..
-->
<form id="" action="/action_page.php" method="post">
<!-- input text -->
Name:<br>
<input type="text" name="name" value="">
<!-- input password -->
<br> Password:<br>
<input type="password" name="password" value="">
<!-- input file -->
<br> File: <br>
<input type="file" name="file" value="">
<!--
input attribute!
autofocus
required
placeholder=""
readonly >> cannot input but can get value
disabled >> cannot input and get value
size="40" >> width of input box is for 40 characters
maxlength="10" >> limit 10 characters
formaction="url-path"
formmethod="get, post"
formnovalidate
formtarget="_blank" >> for type="submit"
multiple >> for type="email" or "file" or <select> use for input multiple value
pattern="RegExp" >> validate with RegExp
-->
<br>
<!-- fieldset -->
<fieldset>
<legend>caption</legend>
<input type="" name="" value="">
</fieldset>
<br>
<!-- selectable input -->
<select name="cars">
<option value="volvo" selected>Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
<br>
<!-- textarea -->
<textarea name="message" rows="10" cols="30">The cat was playing in the garden.</textarea>
<br>
<!-- button -->
<input type="image" src="" width="" height="" name="" value="">
<button type="button" onclick="alert('Hello World!')">Click Me!</button>
<input type="button" name="" value="click">
<br>
<!-- text input with datalist -->
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
<br>
<!-- radio button -->
<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other<br><br>
<!-- check box -->
<input type="checkbox" name="vehicle1" value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle2" value="Car">I have a car<br>
<br>
<!-- html 5 input type -->
<!-- color -->
<input type="color" name="favcolor" value="#ff0000">
<!-- date -->
<input type="date" name="bday" max="1979-12-31" min="2000-01-02" value="">
<input type="time" name="usr_time" value="">
<!-- time -->
<br>
<!-- email -->
E-mail:<input type="email" name="email" value="">
<br>
<!-- input number -->
Quantity (between 1 and 5):<input type="number" name="quantity" min="1" max="5" step="1" value="">
<!-- input slide bar / range --><br> Points:
<input type="range" name="points" min="0" max="10" step="1" value="">
<!-- reset and submit -->
<input type="reset" name="" value="reset">
<br>
<input type="submit" name="" value="Submit">
</form>
<!-- media -->
<!-- video -->
<video width="320" height="240" autoplay controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag.
</video>
<!-- audio -->
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element.
</audio>
<!--
Media attribute!
preload="auto|metadata|none" >> load all src file | load only metadata | not load
autoplay
controls
loop
mute
poster="url" >> image cover for video
-->
<!-- plug-ins -->
<object width="100%" height="500px" data="snippet.html"></object>
<embed width="100%" height="500px" src="snippet.html">
<!-- data and src can be Java applets, PDF readers, Flash Players or image -->
<!--AT THE END OF BODY TAG-->
<!--internal and external js AT THE END OF BODY-->
<!--external js-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" type="text/javascript"></script>
<!--internal js (not inline js dude..)-->
<script type="text/javascript">
// JavaScript goes here
</script>
</body>
</html>