Skip to content

Commit 5f48822

Browse files
Add name and email fields
1 parent d28242a commit 5f48822

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,30 @@
66
<title>My form exercise</title>
77
<meta name="description" content="" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
9+
<link rel="stylesheet" href="style.css">
910
</head>
1011
<body>
1112
<header>
1213
<h1>Product Pick</h1>
1314
</header>
1415
<main>
1516
<form>
16-
<!-- write your html here-->
17-
<!--
18-
try writing out the requirements first as comments
19-
this will also help you fill in your PR message later-->
17+
<div>
18+
<label for="name">Name:</label>
19+
<input type="text" name="name" id="name" pattern=".*\S.*\S.*" required>
20+
</div>
21+
22+
<div>
23+
<label for="email">Email:</label>
24+
<input type="email" name="email" id="email" placeholder="cyftrainee@gmail.com" required>
25+
</div>
26+
27+
<button type="Submit">Submit</button>
2028
</form>
2129
</main>
2230
<footer>
2331
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
32+
<p>By Frumentius-Rev</p>
2533
</footer>
2634
</body>
2735
</html>

0 commit comments

Comments
 (0)