-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form.html
62 lines (57 loc) · 2.21 KB
/
Form.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
<!DOCTYPE html>
<html>
<head>
<title>
Basic Info
</title>
<link rel="icon" type="image/x-icon" href="/home/hs/Desktop/learn-html/images/download.png">
<style>
table,th,td{
border:1px solid black;
border-collapse:collapse;
}
</style>
</head>
<body style="background-image: url('/home/hs/Desktop/learn-html/images/download.jpeg');background-repeat: no-repeat;background-size:100%100%;background-attachment: fixed;">
<h1 style="text-align:center">Student Details</h1>
<form>
<label for="fname">First Name:</label>
<input type="text" id="fname" value="enter your first name">
<label for="lname">Last Name:</label>
<input type="text" id="lname" value="enter your last name"><br><br>
<label>Gender:</label>
<input type="checkbox" id="gname1">
<label for="gname1">Female</label>
<input type="checkbox" id="gname2">
<label for="gname2">Male</label><br><br>
</label for="bname">Branch:</label>
<input type="text" id="bname" value="cse,civil etc"><br><br>
<label for="pyear">Passing Year:</label>
<input type="number" id="pyear" value="2023"><br><br><br>
<input type="button" value="Submit"
</form><br><br>
<h3>About College Students:</h3>
<table style="width:33%">
<tr>
<th>Roll.Number</th>
<th>First Name</th>
<th>Last Name</th>
</tr>
<tr>
<td>1</td>
<td>Palak</td>
<td>Kulhari</td>
</tr>
<tr>
<td>2</td>
<td>Adhi</td>
<td>Kumar</td>
</tr>
</table><br><br>
<img src="/home/hs/Desktop/learn-html/images/download (1).png"
style="width:50px%;height:50px;float:left;"
><br><br><br>
<p>//Used iframe to display a web page within a web page.</p>
<iframe src="file:///home/hs/Desktop/learn-html/Form.html" style="width:33%;height:180px"></iframe>
</body>
</html>