Skip to content

Commit bc89d28

Browse files
author
Ogbemi mene
committed
my form excesis
1 parent ff7b9d0 commit bc89d28

2 files changed

Lines changed: 109 additions & 24 deletions

File tree

Form-Controls/Untitled-1.css

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
2+
body {
3+
background-color: #f4f7f6;
4+
display: flex;
5+
justify-content: center;
6+
align-items: center;
7+
height: 100vh;
8+
margin: 0;
9+
}
10+
11+
form {
12+
background: #ffffff;
13+
padding: 2rem;
14+
border-radius: 8px;
15+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
16+
width: 100%;
17+
max-width: 400px;
18+
}
19+
20+
form div {
21+
margin-bottom: 1.5rem;
22+
display: flex;
23+
flex-direction: column;
24+
}
25+
label {
26+
font-weight: bold;
27+
font-size: 0.85rem;
28+
margin-bottom: 0.5rem;
29+
color: #333;
30+
text-transform: uppercase;
31+
}
32+
33+
input[type="text"],
34+
input[type="email"],
35+
select {
36+
padding: 10px;
37+
border: 1px solid #817575;
38+
border-radius: 4px;
39+
font-size: 1rem;
40+
outline: none;
41+
transition: border-color 0.3s;
42+
}
43+
44+
input:focus,
45+
select:focus {
46+
border-color: #007bff;
47+
}
48+
49+
button {
50+
width: 100%;
51+
padding: 12px;
52+
background-color: #28a745;
53+
color: white;
54+
border: none;
55+
border-radius: 4px;
56+
font-size: 1.1rem;
57+
cursor: pointer;
58+
transition: background-color 0.3s;
59+
}
60+
61+
button:hover {
62+
background-color: #218838;
63+
}

Form-Controls/index.html

Lines changed: 46 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,49 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
3+
<head>
4+
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
67
<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>
8+
<link rel="stylesheet" href="Untitled-1.css">
9+
</head>
10+
11+
<body>
12+
<form action="T-shirt.html" method="GET">
13+
14+
<div>
15+
<label for="name">NAME</label>
16+
<input type="text" name="name" id="name" placeholder="name" value="name" required>
17+
</div>
18+
19+
<div>
20+
<label for="email">EMAIL</label>
21+
<input type="email" name="email" id="email" placeholder="email" value="email" required>
22+
</div>
23+
24+
<div>
25+
colour of T-shirt
26+
<label for="colour">colour of T-shirt</label>
27+
<select name="colour" id="colour">
28+
<option value="red">red</option>
29+
<option value="blue">blue</option>
30+
<option value="green">green</option>
31+
</select>
32+
</div>
33+
34+
<div>
35+
size of T-shirt
36+
<label for="size">size of T-shirt</label>
37+
38+
<select name="size" id="size" required>
39+
<option value="S">S</option>
40+
<option value="M">M</option>
41+
<option value="L">L</option>
42+
<option value="XL">XL</option>
43+
<option value="XXL">XXL</option>
44+
</select>
45+
</div>
46+
47+
<button>Submit</button>
48+
49+

0 commit comments

Comments
 (0)