Skip to content

Commit 9d1fa6e

Browse files
committed
Added change type="text" to type="email and removed body css
1 parent fc99518 commit 9d1fa6e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Form-Controls/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ <h1>T-shirt Pick</h1>
2626
id="name"
2727
placeholder="Enter full name "
2828
required
29+
minlength="2"
2930
/>
3031
</div>
3132
<div class="label-email">
3233
<label for="email">Email</label>
3334
<input
34-
type="text"
3535
name="email"
3636
id="email"
37+
type="email"
3738
placeholder="Enter your email"
3839
required
3940
/>

Form-Controls/styles.css

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
body {
2-
margin: 0;
1+
/* body { */
2+
/* margin: 0;
33
padding: 0;
4-
}
4+
} */
55
.header {
66
display: flex;
77
flex-direction: column;
@@ -31,6 +31,7 @@ form {
3131
}
3232
input[type="text"],
3333
input[type="date"],
34+
input[type="email"],
3435
select {
3536
width: 92%;
3637
padding: 12px 20px;

0 commit comments

Comments
 (0)