-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTutorial.htm
More file actions
221 lines (190 loc) · 7.01 KB
/
Tutorial.htm
File metadata and controls
221 lines (190 loc) · 7.01 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
<!DOCTYPE html>
<!--Our HTML code starts here-->
<html lang="en">
<!-- Our Head tag Starts here -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="This is description">
<meta name="keywords" content="html , html tutorials,web development">
<meta name="robots" content ="INDEX,FOLLOW" >
<title>Tutorial</title>
<!-- This is how we include external css -->
<link rel ="stylesheet" href="Tutorial.css">
<!-- This is how we include external Javascript -->
<script src="Tutorial.js"></script>
</head>
<!--Our BODY tag starts here-->
<body>
<h1>HI! </h1>
<p>This is my web development bootcamp
<!-- lorem40 is used to get a paragraph of 40 words -->
Lorem ipsum dolor sit amet consectetur adipisicing elit. Officiis veniam cum neque. Quo tenetur quibusdam fuga accusantium<strong> voluptatum</strong> quasi neque voluptates veritatis placeat hic, illo error eos, quis excepturi magni! ipsum dolor sit.</p>
<br>
Here is a next line
<!-- Here i use p*4 -->
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut, rerum.</p>
<hr><p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias libero rerum, nihil aspernatur voluptatibus dolore?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. At commodi numquam necessitatibus.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate, doloribus! Adipisci unde cum modi molestias fugit voluptatibus qui hic molestiae.</p>
<!-- ctrl+enter to jump on new line -->
<a href="https://google.com" target ="_blank">Go to google</a><br>
<a href="https://linkedin.com" target ="_blank">Go to linked in</a><br>
<a href="https://facebook.com" target ="_blank">Go to facebook</a><br>
<a href="https://youtube.com" target ="_blank">Go to youtube</a><br>
<a href="/Saksham Aggarwal.htm" target ="_blank">Go to Saksham Aggrawal</a><br>
<!-- Image is not present hence alt attribute is used -->
<img src="saksham.jpg"alt="ERROR in the image ">
<!-- height and width can be changed within the source -->
<img src="https://source.unsplash.com/100x90/?nature,water" alt="ERROR in the image ">
<ul type ="square">
<li>First</li>
<li>Second </li>
<li>Third </li>
<li>Fourth</li>
<li>Fifth</li>
</ul>
<!-- here we have used nested list -->
<ol type ="A">
<li>First</li>
<li>Second </li>
<li>
<ul>
<li>
ANoher one
</li>
<li>
ANoher one
</li>
</ul>
</li>
<li>Fourth</li>
<li>Third</li>
</ol>
<h2>Tables</h2>
<!-- NEW TAGS FOR ME : thead tbody -->
<table>
<thead>
<tr>
<th>Name</th>
<th>Roll no. </th>
<th>Occupation</th>
</tr>
</thead>
<tbody>
<tr>
<td>Saksham</td>
<td>18</td>
<td>Coder</td>
</tr>
</tbody>
</table>
<!-- Here we will start forms -->
<h2>This is a form tutorial</h2>
<!-- here we will use div tag not br -->
<form method="post" action="mailto:saggarwal.1709@gmail.com">
<div>
<label for="name"> Name: </label>
<input type ="text"name="myName" id="name" value="write your name">
</div>
<br>
<div>
<label for="roll no">Roll no:</label>
<input type ="text"name="myRollno" id="roll no">
</div>
<br>
<!-- here we used input:email instead of putting a tag -->
<div>
<label for="email">Email:</label>
<input type="email" name="myEmail" id="email">
</div>
<br>
<div>
<label for="date">Date :</label>
<input type="date" name="myDate" id="date" >
</div>
<br>
<div>
<label for="fees">Fees</label>
<input type="number" name="myFees" id="fees">
</div>
<br>
<div>
<label for="occupation">Are you a student? </label>
<!-- Here we can also add checked attribute -->
<input type="checkbox" name="myOccupation" id="occupation">
</div>
<br>
<div>
<label for="gender">Gender:</label>
Male <input type="radio" name="myGender" id="gender"> FeMale <input type="radio" name="myGender"id="gender" >
Other <input type="radio" name="myGender" id="gender" >
</div>
<br>
<div>
<label for="bio">
Write about youreself</label>
<textarea name="mytext" cols="30" rows="10" id="bio"></textarea>
</div>
<br>
<div><fieldset>
<legend>THIS IS OPTIONAL</legend>
<label for="car"> Car</label>
<!-- Here i have used select tag option attribute -->
<select name="myCar" id="car">
<!-- selected is used to show tata as the default option -->
<option value="tata" selected>TATA</option>
<option value="hyn">HYUNDAI</option>
<option value="ms">MARUTI SUZUKI</option>
</select>
</fieldset>
</div>
<br>
<div>
<input type="submit" value ="Submit now">
<input type="reset" value="Reset Now">
</div>
</form>
<h2>Inline and Block elements </h2>
<p style ="border :2px solid red">This is a paragraph</p>
<p style ="border :2px solid blue">This is also a paragraph</p>
<span style ="border :2px solid red">This is a span </span>
<span style ="border :2px solid blue">This is also a span </span>
<strong style ="border :2px solid red">This is a strong </strong>
<strong style ="border :2px solid blue">This is also a strong </strong>
<a style ="border :2px solid red">This is a anchor <a>
<a style ="border :2px solid blue">This is also a anchor </a>
<h2>IDs and Classes</h2>
<!-- there is only 1 id of 1 element but various classes -->
<div id ="mainBox" class="redBg blackBorder"> hi</div>
<!-- Emmet -->
<!-- . is for class and # is for id span.redBG , span#mainspan -->
<span class="redBg"></span>
<span id="mainspan"></span>
<!-- emmet takes div tag as defaut -->
<!-- write only .blackbg to get div tag -->
<div class="blackbg"></div>
<!-- Creating multiple elements using Emmet -->
<!-- span.myClass.myClass2.myClass3 + <Tab> to print 4 similar elements using Emmet -->
<!-- span.myClass.myClass2.myClass3*4 -->
<span class="myClass myClass2 myClass3">First</span>
<span class="myClass myClass2 myClass3">Second</span>
<span class="myClass myClass2 myClass3">Third</span>
<span class="myClass myClass2 myClass3">Fourth</span>
<h2>HTML Entities</h2>
<div class="container">
<!-- Different SYMBOLS -->
<p>This is a paragraph</p>
<p>This is a paragraph with p tag pound copy right half <p> £ © ½</p>
<p>This is also a paragraph</p>
<p>Empty character is written like this ​ </p>
</div>
<h1>Semantic Elements </h1>
<strong>A riddle for u😀😀😀</strong>
<details>
<summary>I have keys but no doors. I have space but no room. You can enter but can’t leave. What am I?
</summary>
A keyboard.
</details>
</body>
</html>