-
Notifications
You must be signed in to change notification settings - Fork 0
/
assignment.html
219 lines (186 loc) · 6.25 KB
/
assignment.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
<html>
<head>
<style>
ul#menu li {
display:inline;
margin: 100px;
font-size: 30px;
text-align: center;
margin-left: 150px;
font-family: "Segoe UI",Arial,sans-serif;
}
#heading {
float: right;
letter-spacing: 4px;
margin-top: 40px;
margin-right: 40px;
font-size: 20px;
}
#Form-heading{
margin-left: 40px;
margin-top: 40px;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
text-align: center;
font-size: 20px;
}
form{
border: 1px solid black;
font-family: "Segoe UI",Arial,sans-serif;
border-radius: 5px;
padding-left: 10px;
font-weight: 400;
margin-left: 40px;
margin-right: 40px;
}
.in-div{
margin-left: 70px;
font-size: 20px;
}
.top-most{
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
</style>
<title>Assignment</title>
<div>
<section>
<div>
<img src="https://upload.wikimedia.org/wikipedia/commons/3/3e/W3Schools_logo.png" alt="logo" width="260px" height="100px">
<div id="heading">
THE WORLD'S LARGEST WEB DEVELOPER WEBSITE
</div>
</div>
<hr>
</div>
</section>
<section>
<nav>
<ul id="menu">
<li>
<a href="https://www.w3schools.com/html/default.asp"> Html </a>
<li>
<a href="https://www.w3schools.com/css/default.asp"> CSS </a>
</li>
<li>
<a href="https://www.w3schools.com/python/default.asp"> Python </a>
</li>
<li>
<a href="https://www.w3schools.com/js/default.asp"> JavaSript </a>
</li>
</ul>
</nav>
<hr>
</head>
</section>
<body>
<section>
<div class="top-most">
<h1>HTML introduction</h1>
<p><h3> HTML is the standard markup language for Web pages. </h3> </p>
<ol class="in-div">
<li><a href="#html1"> What is HTML </a> </li>
<li><a href="#html2"> What is HTML element </a> </li>
<li><a href="#html3">Web Browsers</a> </li>
</ol>
<h1 id="html1">What is HTML?</h1>
<ul class="in-div">
<li>HTML stands for Hyper Text Markup Language</li>
<li>HTML is the standard markup language for creating Web pages</li>
<li>HTML describes the structure of a Web page</li>
<li>HTML consists of a series of elements</li>
<li>HTML elements tell the browser how to display the content</li>
<li>HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.</li>
</ul>
<h1 id="html2">What is HTML element</h1>
<div class="in-div">
<p>
The HTML element is everything from the start tag to the end tag:
<br>
<tagname>Content goes here...</tagname>
<br>
<br>
Examples of some HTML elements:
<br>
<br>
<span><</span>h1>"My First Heading"</h1> <br>
<p>"My first paragraph."</p>
</p>
</div>
<h2>Basic HTML Table</h2>
<table style="width:100%">
<tr>
<th>Start Tag</th>
<th>Element Content</th>
<th>End Tag</th>
</tr>
<tr>
<td><h1> </td>
<td><My First Heading></td>
<td></h1></td>
</tr>
<tr>
<td><p></td>
<td><My first paragraph></td>
<td></p></td>
</tr>
<tr>
<td><br></td>
<td>none</td>
<td>none</td>
</tr>
</table>
<br/>
<hr>
<br/>
<h1 id="html3">What is a web browser</h1>
<div class="in-div">
<p>
The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents and display them correctly.
<br>
<br>
A browser does not display the HTML tags, but uses them to determine how to display the document:
<br>
<br>
<img src ="img_chrome.png">
</p>
</div>
</section>
<section>
<h2 id="Form-heading">Submit your review here</h2>
<div class="form">
<form method="POST" action="#" >
<br/>
Name :
<input type="text"/>
<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>
<input type="radio" id="other" name="gender" value="other">
<label for="other">Other</label>
<br/><br>
<label for="rate">rate it:</label>
<select id="rate" name="rating">
<option value="very good">very good</option>
<option value="good">good</option>
<option value="bad">bad</option>
<option value="average">average</option>
</select>
<br/>
Description : <br />
<textarea rows = "5" cols = "50" name = "description">Enter description here...</textarea>
<br/>
<br/>
<br/>
<button> Submit </button>
<br/>
<br/>
</form>
</div>
</section>
</body>
</html>