Skip to content

Commit 196b343

Browse files
author
lintsang
committed
added name and email in form
1 parent 17f876a commit 196b343

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

Form-Controls/index.html

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,35 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6-
<title>Sprint 1 form controls exercise</title>
6+
<title>My Sprint 1 form controls exercise</title>
77
<meta name="description" content="" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
<link rel="stylesheet" href="css/style.css">
1010
</head>
1111
<body>
1212
<header>
13-
<h1>Insert Your Name Below</h1>
13+
<h1>Product Pick</h1>
1414
</header>
1515
<main>
1616
<form>
17-
<label for="fullname"> Name: </label>
18-
<input type="text" name="fullname" id="fullname" required maxlength="100">
19-
<button>Submit</button>
17+
<fieldset>
18+
<lengend>
19+
Person name and email</lengend>
20+
<div class="form-group">
21+
<label for="fullname">Full Name:</label>
22+
<input type="text" id="fullname" required minlength="2">
23+
</div>
24+
<div class="form-group">
25+
<label for="email">Email:</label>
26+
<input type="email" id="email" required pattern="^.+@.+\..+$">
27+
</div>
28+
29+
30+
</div>
31+
</fieldset>
32+
<!--
33+
Create a form that can collect
34+
name, email, preferred tshirt colour and size from user-->
2035
</form>
2136
</main>
2237
<footer>

0 commit comments

Comments
 (0)