-
Notifications
You must be signed in to change notification settings - Fork 0
/
forms.html
66 lines (64 loc) · 2.11 KB
/
forms.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>
<body>
<form>
<fieldset style="width: 400px">
<legend>Personal information:</legend>
First name:<br>
<input type="text" name="firstname" autofocus placeholder="John" required>
<br>
Last name:<br>
<input type="text" name="lastname" placeholder="Smith" required><br>
Birthday: <br>
<input type="date" name="bday">
<br>
Country:
<select name="countries">
<option value="Rus">Russia</option>
<option value="Ge">Germany</option>
<option value="Fr">France</option>
<option value="It">Italy</option>
<option value="Eng">England</option>
<option value="Usa">USA</option>
</select>
<br>
<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<br>Attach your photo: <input type="file" name="img"><br>
<input type="submit" value="Submit">
</fieldset>
</form>
<br><br>
<form action="mailto:[email protected]" method="post" enctype="text/plain">
<fieldset style="width: 400px">
<legend>Sending an email to [email protected]</legend>
Name:<br>
<input type="text" name="name"><br>
Email content:<br>
<input type="text" name="content" size="50" maxlength="300" value="Max length of the email is 300 characters"><br><br>
<input type="checkbox" name="key">Attach my public key
<br>
<input type="checkbox" name="signature">Sign the email<br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
<input type="file" name="attachments" multiple>
</fieldset>
</form>
<br><br>
<form>
<textarea name="message" rows="5" cols="50" placeholder="You can put anything you want here. It's a text area which acts as a multiple-line input field."></textarea>
<br>
<input type="submit">
<button type="button" onclick="alert('Unfortunately, submit buttons do not work for now')">Another button!</button>
</form>
<br>
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">
0
<input type="range" id="a" name="a" value="50">
100 +
<input type="number" id="b" name="b" value="50" style="width:50px">
=
<output name="x" for="a b"></output>
</form>
</body>
</html>