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
35 changes: 33 additions & 2 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,46 @@
<h1>Product Pick</h1>
</header>
<main>
<form>
<form id="TShirtForm" class="contianer">
<!-- write your html here-->
<!-- try writing out the requirements first-->
<label for="firstName">First Name</label>
<input type="text" id="firstName" placeholder="First name" required><br><br>
<label for="lastName">Last Name</label>
<input type="text" id="lastName" placeholder="Last name" required><br><br>
<label for="email">Email address</label>
<input type="email" id="email" placeholder="Insert your email address" required><br><br>

<label for="deliveryDate">Select the delivery date</label>
<input type="date" id="deliveryDate" min="5/5/2023" max="5/6/2023" required><br><br>

<label for="colors">Select your colour</label>
<select id="colors" form="TShirtForm">
<option value="green">Green</option>
<option value="black">Black</option>
<option value="red">Red</option>
</select><br><br>

<label for="size">Select your size</label>
<select id="size" form="TShirtForm">
<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><br>

<input type="submit" id="submit">

</form>


</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h2>By Khalil Alhaydr</h2>
</footer>
</body>

Expand Down
21 changes: 21 additions & 0 deletions Form-Controls/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
* {
background-color: rgb(247, 244, 244);
}
#submit {
background-color: green;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=text], input[type=email], input[type=date], select, textarea {
width: 25%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin-top: 6px;
margin-bottom: 16px;
resize: vertical
}