blob: f97c3c37fcc093b50f0b70a8d4572e2d449fb660 (
plain) (
blame)
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>Comment Form</title>
<meta charset="utf-8">
<style>
label { display: block;
margin-top: 20px; }
input { display: block;
margin-bottom: 20px; }
</style>
</head>
<body>
<h1>Comment Form</h1>
<form method="post" action="https://webdevbasics.net/scripts/demo.php">
<label for="myFirstName">* First Name</label>
<input type="text" name="myFirstName"
id="myFirstName" required="required"
placeholder="your first name">
<label for="myLastName">* Last Name</label>
<input type="text" name="myLastName"
id="myLastName" required="required"
placeholder="your last name">
<label for="myEmail">* E-mail</label>
<input type="email" name="myEmail" id="myEmail"
required="required"
placeholder="you@yourdomain.com">
<label for="myRating">Rating (1 — 10)
</label>
<input type="range" name="myRating"
id="myRating" min="1" max="10">
<label for="myComments">* Comments</label>
<textarea name="myComments" id="myComments"
rows="2" cols="40"
required="required"
placeholder="your comments here">
</textarea>
<input type="submit" value="Submit">
</form>
</body>
</html>
|