-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic-form.html
36 lines (36 loc) · 1.21 KB
/
basic-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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width" initial-scale="1.0">
<title>basic form</title>
</head>
<body>
<h1>Basic html form</h1>
<h3>Please fill your details</h3>
<form action="">
<label for="Username" name="user_id">Username:</label>
<input id="Username" type="text" placeholder="Username"><br/>
<label for="pass"> password:</label>
<input id="pass" type="password" placeholder="enter password"><br/>
gender:
<input type="radio" id="Male" name="gender">
<label for="Male">Male</label>
<input type="radio" id="Female" name="gender">
<label for="Female">Female</label><br/>
country:
<select name="country" size="1">
<option value="IND">India</option>
<option value="SING">Singapore</option>
<option value="US">USA</option>
</select><br/><br/>
<input type="checkbox" name="condition">Declaration<br/><br/>
<button type="submit" onclick="greet()">Submit</button><br/>
</form>
<script>
function greet(){
alert("welcome to RVCE")
}
</script>
</body>
</html>