-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasics.html
More file actions
281 lines (249 loc) · 8.05 KB
/
basics.html
File metadata and controls
281 lines (249 loc) · 8.05 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
<!DOCTYPE html> <!--Doc Type is HTML5 -->
<html> <!--open tag for well form HTML page-->
<head> <!--Not displayed-->
<title> My First Web Page </title> <!--Title of the page-->
<!--meta tag-->
<meta name="description" content="Page Description Here" /> <!--for search engine-->
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8"/> <!--specify charset to use-->
<meta name="viewport" content="width=device-width, initial-scale=1"/> <!--viewport tells the browser how to display it-->
<!--style for Body tag all red-->
<style type="text/css"> /* comments in CSS */
Body {
color: red;
}
</style>
<!--html comment -->
<script> /* javascript comment*/
function myFunction() {
var x = document.getElementById("fname");
x.value = x.value.toUpperCase();
}
</script>
</head>
<body> <!--Portion to be displayed-->
<p>This is a Sample HTML Document.</p> <!--paragraph tag-->
This Javascript function will capitalize my name:
<p>Enter your name: <input type="text" id="fname" onchange="myFunction()"></p>
<!--Line Break <br>-->
<!--HTML ignore spaces, multiple will become single space-->
<!--use to add spaces-->
<p>This is line 1.<br>This is Line2. This is line 3. </p>
<p>This is line 1.<br>This is Line2. This is line 3. </p>
<!-- Header tags-->
<h1>Head 1</h1>
<h2>Head 2</h2>
<h3>Head 3</h3>
<!-- Inline styling using <fon></fon> tag -->
<h3><font face="arial" size="22" color="blue">Head4</font></h4>
<p>
<strong>Bold Text</strong><br>
<em>Italic Text</em><br>
<u>Underlined Text</u><br>
<strike>Strike Text</strike><br>
</p>
<strong><em><u><strike>this is combining</strike></u></em></strong>
<!-- Unordered List -->
<ul>
<li>Baseball</li>
<li>Soccer</li>
<li>Basketball</li>
<li>Football</li>
</ul>
<!-- Ordered List -->
<h3> Favorite Vacations</h3>
<ol>
<li>Miami, FL</li>
<li>New York, NY</li>
<li>Las Vegas, NV</li>
<li>Houston, TX</li>
</ol>
<p>
<img src="FL.jpg" width="333" height="250">
<img src="LV.jpg" width="375" height="250">
<img src="NY.jpg" width="374" height="250">
<img src="http://veridicusinc.com/wp-content/uploads/2016/02/Houston_night.jpg" width="389" height="250">
</p>
<!-- Playing video (does not work) -->
<!-- <Video width="600" controls> -->
<!-- <Video width="600" autoplay>
<source=".\ya.mp4" type="video/mp4">
Your browser does not support the video tag.
</Video> -->
<p>
<!-- this way works the <source> tag is not working!!!! -->
<video src="ya.mp4" controls>
<!-- <video src="ya.mp4" > -->
Your browser won't work with video tag
</video>
</p>
<p>
<!-- Use target attribute "_blank" to open the link in new tab -->
<a href="http://www.miami.com" target="_blank"><img src="FL.jpg"></a>
<a href="http://www.lasvegas.com"><img src="LV.jpg"></a>
<a href="http://www.newyork.com"><img src="NY.jpg"></a>
<a href="http://www.Houston.com"><img src="http://veridicusinc.com/wp-content/uploads/2016/02/Houston_night.jpg"></a>
</p>
<!-- Anchor Tag -->
<p><h1>Table of Contents:</h1></p>
<ul>
<li><a href="#article1">Article 1</a><br>
</li>
<li><a href="#article2">Article2</a><br>
</li>
<li>Article 3<br>
</li>
<li>Article 4</li>
<li>Article 5<br>
</li>
</ul>
<p><h1><a id="article1"></a>Article 1</h1></p>
<p>this is article 1</p>
<p><h1><a id="article2"></a>Article 2</h1></p>
<p>this is article 2</p>
<p><h1><a id="article3"></a>Article 3</h1></p>
<p>this is article 3</p>
<p><h1><a id="article4"></a>Article 4</h1></p>
<p>this is article 4</p>
<p><h1><a id="article5"></a>Article 5</h1></p>
<p>this is article 5</p>
<!-- Table -->
<p>
<!-- <table width="100%" border="1" bordercolor="blue" cellspacing="2" cellpadding="2"> -->
<!-- <table width="50%" border="1" bordercolor="blue" cellspacing="2" cellpadding="2"> -->
<!-- table can have background -->
<table width="500" background="tablebg.jpg" border="1" bordercolor="blue" cellspacing="2" cellpadding="2">
<tr>
<td>sport</td>
<td>response</td>
</tr>
<tr>
<td>baseball</td>
<!-- alignment can ba achieved -->
<td align="right">25</td>
</tr>
<tr>
<td>basketball</td>
<td>28</td>
</tr>
<tr>
<td>Hockey</td>
<td>26</td>
</tr>
</table>
</p>
<p>
<!-- Nested Table -->
<table width="500" border="1" bordercolor="blue" cellspacing="2" cellpadding="2">
<tr>
<!-- colspan and nowrap -->
<td colspan="2" nowrap>sport</td>
</tr>
</table>
</p>
<p>
<!-- HTML Forms:
Used to gather input from user
For Data can be input into a Database or sent to an email address.
Input forms are created in HTML
Data is submitted to a script for processing -->
<!-- Diff between GET and POST method of http
GET requests data from a specific resource
GET uses name/value pairs which are sent via the URL string
fe: send.php?fname=john&lname=smith
GET can be cached
GET remain in browser history
Should only be used to retrieve data
Have length limitation
Should not be used for sensitive data
Can be bookmarked
POST submits data to be processed to a specific resource
POST sends name/value pairs in the HTTP message body
fe: POST send.php HTTP/1.1
HOST: you.com
fname=john&lname=smith
No restrictions on data length
can not be bookmarked
do not remain in browser history
requests are never cached -->
<form name="employment" action="send.php" method="post">
<table width="600" border="1" cellspacing="2" cellpadding="2">
<tr>
<td>Employment Application</td>
<td></td>
</tr>
<tr>
<td>First Name</td>
<td><input type="text" name="fname" maxlength="50"/></td>
</tr>
<tr>
<td>Last Name</td>
<td><input type="text" name="lname" maxlength="50"/></td>
</tr>
<tr>
<td>Position</td>
<td>
<select name="position">
<option value="AC">Accountant</option>
<option value="AE">Receptionist</option>
<option value="AD">Administrator</option>
<option value="SU">Supervisor</option>
</select>
</td>
</tr>
<tr>
<td>Experience Level</td>
<td>
<select name="experience">
<option value="EL">Entry Level</option>
<option value="SE">Some Experience</option>
<option value="VE">Very Experienced</option>
</select>
</td>
</tr>
<tr>
<td>Job Type</td>
<td>
<input type="checkbox" name="ft"/>Full-Time
<input type="checkbox" name="pt"/>Part-Time
<input type="checkbox" name="ct"/>Contract
</td>
</tr>
<tr>
<td>Employment Status</td>
<td>
<input type="radio" name="status" value="employed"/>Employed
<input type="radio" name="status" value="unemployed"/>UnEmployed
<input type="radio" name="status" value="student"/>Student
</td>
</tr>
<tr>
<td>Additional Comments</td>
<td>
<textarea name="comments" cols="45" rows="5"></textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="submit" value="submit"/>
<input type="reset" name="reset" value="reset"/>
</td>
</tr>
</table>
</form>
</p>
<!-- How to do iframe -->
<p>
<p>
<iframe src="http://www.bing.com" width="100%" height="400">
<p>Your Browser does not support iframe</p>
</iframe>
</p>
<p>
<iframe src="http://www.google.com" width="100%" height="400">
<p>Your Browser does not support iframe</p>
</iframe>
</p>
</p>
</body>
</html>