-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
31 lines (31 loc) · 945 Bytes
/
main.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS Form Demo</title>
<script src="main.js"></script>
</head>
<body onload="pageLoad()">
<h1>JavaScript Form Demo</h1>
<form id="myForm">
<div>
<label for="name">Name:</label><input type="text" id="name">
</div>
<div>
<label for="drink">Drink Order:</label><input type="text" id="drink">
</div>
<div>
<label for="food">Food Order:</label><input type="text" id="food">
</div>
<div>
<input type="radio" id="eat-in" name="location" value="eat-in">
<label for="eat-in">Eating in?</label>
<input type="radio" id="takeaway" name="location" value="takeaway">
<label for="takeaway">Or takeaway?</label>
</div>
<div>
<input type="submit" value="Place order">
</div>
</form>
</body>
</html>