Skip to content

Maheag|OnboardingForm|Week2 #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
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
56 changes: 49 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,64 @@
<title>My form exercise</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

</head>
<body>
<header>
<h1>Product Pick</h1>
<h1>Product Pick</h1><br>
</header>
<main>
<form>
<!-- write your html here-->
<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
</form>
<div class="container">
<form>
<!-- write your html here-->
<!-- try writing out the requirements first-->

<h2>T-Shirt Order Form</h2>
<form id="tshirtOrderForm">
<label for="name">Confirm your Name:</label>
<input type="text" id="name" name="name" required pattern="[A-Za-z\s]+" title="Please enter a valid name (letters and spaces only)."><br>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please require a min of 2 characters.


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

<label for="color">T-Shirt Color:</label>
<select id="color" name="color" required>
<option value="" disabled selected>Select a color</option>
<option value="black">Black</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
<option value="white">White</option>
<option value="pink">Pink</option>
</select><br>

<label for="qtt">Quantity:</label>
<input type="number" id="qtt" name="quantity" required><br>

<label for="size">T-Shirt Size:</label>
<select id="size" name="size" required>
<option value="" disabled selected>Select 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="date">Select a date:</label>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Date not in the brief. Please remove it

<input type="date" id="date" name="date" min="2025-02-10" max="2025-03-10" required>
<button type="submit">Submit</button>
</form><br>



</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h2>By Maheag Special Solutions</h2>
</footer>
</body>
</html>
1 change: 1 addition & 0 deletions Form-Controls/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@