Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 41 additions & 5 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand All @@ -8,20 +9,55 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
</head>

<body>
<header>
<h1>Product Pick</h1>
</header>
<main>
<form>
<!-- write your html here-->
<!-- try writing out the requirements first-->
</form>
<form>
<!-- write your html here-->
<!-- try writing out the requirements first-->
<label for="customer-name">Name:</label>
<input type="text" id="customer-name" name="customer-name" minlength="2" required>
<br>

<label for="customer-email">Email:</label>
<input type="email" id="customer-email" name="customer-email" required>
<br>

<label for="shirt-color">Color:</label>
<select id="shirt-color" name="shirt-color" required>
<option value="">Choose a color</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
</select>
<br>

<label for="shirt-size">Size:</label>
<select id="shirt-size" name="shirt-size" required>
<option value="">Choose a size</option>
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="XXL">XXL</option>
</select>
<br>

<label for="delivery-date">Delivery Date:</label>
<input type="date" id="delivery-date" name="delivery-date" min="2023-04-13" max="2023-05-10" required>
<br>

<input type="submit" value="Submit">
</form>

</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h2>By HERISH TURKI & GLASGOW _ CLASS 6</h2>
</footer>
</body>

Expand Down
47 changes: 47 additions & 0 deletions Form-Controls/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
body {
font-family: Arial, sans-serif;
line-height: 1.6;
}

header {
background: #35424a;
color: #ffffff;
padding: 20px;
}

h1 {
margin: 0;
}

main {
padding: 20px;
}

label {
display: inline-block;
width: 150px;
font-weight: bold;
}

input[type="submit"] {
background: #35424a;
color: #ffffff;
font-weight: bold;
padding: 5px 10px;
border: none;
cursor: pointer;
}

input[type="submit"]:hover {
background: #e00909;
}

footer {
background: #35424a;
color: #ffffff;
padding: 20px;
}

:focus {
outline-color: #35424a;
}