-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgood-bday-2.html
More file actions
47 lines (41 loc) · 868 Bytes
/
good-bday-2.html
File metadata and controls
47 lines (41 loc) · 868 Bytes
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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<style>
fieldset {
display: grid;
grid-template-columns: [label] auto [input] 1fr;
gap: 10px;
margin-bottom: 10px;
}
label {
grid-column: label;
font-weight: bold;
}
input[type="date"] {
grid-column: input;
width: 200px;
}
</style>
</head>
<body>
<form>
<!-- ② まとめた生年月日 -->
<fieldset>
<legend>生年月日(まとめて入力)</legend>
<label for="birthday">生年月日</label>
<input
type="date"
id="birthday"
name="birthday"
autocomplete="bday"
/>
</fieldset>
<input type="submit" value="送信">
</form>
<script src="./form.js"></script>
</body>
</html>