forked from tinkerhub/stackup-teamplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.html
79 lines (65 loc) · 2.1 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
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<head>
<title>Form with 7 fields</title>
<style>
form {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 5px;
}
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
width: 75%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
resize: none;
}
input[type=submit] {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
width: auto;
margin: auto;
}
</style>
</head>
<body>
<div class="container">
<form>
<label for="fname">Questin code</label>
<input type="text" id="fname" name="firstname" placeholder="Your name.." required>
<label for="question">Question</label>
<textarea id="question" name="question" placeholder="Write something.." style="height:200px" required></textarea>
<label for="lname">Option 1</label>
<input type="text" id="lname" name="lastname" placeholder="Your Option 1.." required>
<label for="lname">Option 2 </label>
<input type="text" id="lname" name="lastname" placeholder="Your Option 2.." required>
<label for="lname">Option 3</label>
<input type="text" id="lname" name="lastname" placeholder="Your Option 3.." required>
<label for="lname">Option 4</label>
<input type="text" id="lname" name="lastname" placeholder="Your Option 4.." required>
<label for="lname">Ans option</label>
<input type="text" id="lname" name="lastname" placeholder="Your Option Ans.." required>
<input type="submit" value="Submit" onclick="alert('Submitted')">Delete</button>
<button type="button" onclick="alert('Edit button clicked')">Edit</button>
<button type="button"
</form>
</div>
</body>
</html>