-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html
66 lines (66 loc) · 3.36 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
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Product Review</title>
<meta name="description" content="A form to post a review of a given product">
<meta name="author" content="Hyrum Wines">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="styles/form.css">
<!-- <link rel="stylesheet" href="styles/form-large.css"> -->
<script src="scripts/form.js" defer></script>
</head>
<body>
<header>
<h1>Product Review</h1>
</header>
<main>
<form action="review.html" method="get">
<label>
Product Name*
<select id="productName" name="product" required>
<option value="" selected disabled>Select a Product...</option>
</select>
</label>
<fieldset>
<div>Overall Rating*</div>
<label><input type="radio" id="oneStar" name="rating" value="☆" required>☆</label>
<label><input type="radio" id="twoStar" name="rating" value="☆☆" required>☆☆</label>
<label><input type="radio" id="threeStar" name="rating" value="☆☆☆" required>☆☆☆</label>
<label><input type="radio" id="fourStar" name="rating" value="☆☆☆☆" required>☆☆☆☆</label>
<label><input type="radio" id="fiveStar" name="rating" value="☆☆☆☆☆" required>☆☆☆☆☆</label>
</fieldset>
<label>
Date of Installation*
<input type="date" name="installDate" id="installDate" required>
</label>
<fieldset>
<div>Which of the features did you find to be useful?</div>
<label><input type="checkbox" name="feature" id="durability" value="durability">Durability</label>
<label><input type="checkbox" name="feature" id="easeOfUse" value="ease of use">Ease of use</label>
<label><input type="checkbox" name="feature" id="performance"
value="performance">Performance</label>
<label><input type="checkbox" name="feature" id="design" value="design">Design</label>
</fieldset>
<label>
Written Review
<textarea id="writenReview" name="writenReview"></textarea>
</label>
<label>
Your Name:
<input type="text" id="userName" name="userName" placeholder="Your Name">
</label>
<input type="submit" value="Post Review">
</form>
</main>
<footer>
<p>© <span id="currentyear"></span> | Hyrum Wines | Arizona</p>
<p id="lastModified"></p>
</footer>
</body>
</html>