-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms-lec.html
More file actions
57 lines (47 loc) · 1.92 KB
/
forms-lec.html
File metadata and controls
57 lines (47 loc) · 1.92 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Forms Lecture</title>
</head>
<body>
<!--Form Tags-->
<!--Container to hold forms-->
<form method="POST" action="https://request-inspector.glitch.me/">
<!--if you need more key value pairs, separate them with an ampersand-->
<label for="username">Username</label>
<input id="username" name="username" type="text" placeholder="username" value="rooks4507">
<br>
<label for="password">Password</label>
<input id="password" name="password" type="password" placeholder="password">
<br>
<label for="txtarea">Text Area </label>
<textarea id="txtarea" name="comment"></textarea>
<br>
<input type="submit">
<button type="submit">Enter</button>
<br>
<label for="check">Check Box</label>
<input id="check" name="newsletter_signup" value="true" type="checkbox" checked>Sign Up For The Email Newsletter
<br>
<p>Test Question</p>
A <input type="radio" name="quiz_question_1" value="a"><br>
B <input type="radio" name="quiz_question_1" value="b" disabled><br>
C <input type="radio" name="quiz_question_1" value="c" checked><br>
<!-- "checked" attribute will make it on the form be pre-checked-->
D <input type="radio" name="quiz_question_1" value="d"><br>
<!--separate questions are separated by their own form, to get a new question with unique responses, you need it's own <form> section-->
<br>
<select name="coffee_preference">
<option value="light">Light Roast</option>
<option value="dark" selected>Dark Roast</option>
<option value="espresso">Espresso Blend</option>
</select>
<br>
<input type="hidden" name="user_id" value="432">
</form>
</body>
</html>