Skip to content

Commit d5fd617

Browse files
Added Name input with two non-space characters
1 parent a7b8a25 commit d5fd617

1 file changed

Lines changed: 38 additions & 25 deletions

File tree

Form-Controls/index.html

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,40 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6-
<title>My form exercise</title>
7-
<meta name="description" content="" />
8-
<meta name="viewport" content="width=device-width, initial-scale=1" />
9-
</head>
10-
<body>
11-
<header>
12-
<h1>Product Pick</h1>
13-
</header>
14-
<main>
15-
<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-->
20-
</form>
21-
</main>
22-
<footer>
23-
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
25-
</footer>
26-
</body>
27-
</html>
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
7+
<title>My form exercise</title>
8+
<meta name="description" content="" />
9+
<meta name="viewport" content="width=device-width, initial-scale=1" />
10+
</head>
11+
12+
<body>
13+
14+
<!-- This is a header section -->
15+
<header class="hd">
16+
<h1>Product Pick</h1>
17+
</header>
18+
19+
20+
21+
<main>
22+
<form>
23+
24+
<!-- This is a customer name input -->
25+
26+
<div>
27+
<label class="blk" for="nam">First Name* </label>
28+
<input type="text" id="nam" name="name" placeholder="Enter Your Name" pattern=".*\S.*\S.*" required>
29+
</div>
30+
31+
32+
</form>
33+
</main>
34+
<footer>
35+
<!-- change to your name-->
36+
<p>By HOMEWORK SOLUTION</p>
37+
</footer>
38+
</body>
39+
40+
</html>

0 commit comments

Comments
 (0)