Skip to content

JAN25|SARAAMIRI|Module-Onboarding|week2 #264

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 2 commits into
base: main
Choose a base branch
from
Open
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
50 changes: 46 additions & 4 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,61 @@
</head>
<body>
<header>
<h1>Product Pick</h1>
<h1>T-shirt order form</h1>
</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-->
this will also help you fill in your PR message later--
//requierment
//1- collect customer valid name (at least 2 character )
//2-customer email address (valid email address )
//3-allow customer to choose one color from defined three colors
// 4-allow customer to choose one size from defined six size

<form action="" method="POST">
<fieldset>
<legend >customer information</legend>
<h1>T-Shirt Order Form</h1>

Copy link

Choose a reason for hiding this comment

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

The form would look more organised if it were grouped together. Can you add tags for better semantics and structure?

Copy link
Author

Choose a reason for hiding this comment

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

thank you for reviewing my code here i need to use

and to group related field .

<!--Customer's Name -->
<label for="name">What is your name?</label>
<input type="text" id="name" name="name" required minlength="2" pattern="[A-Za-z\s]{2,}" title="Please enter a valid name with at least 2 characters, containing only letters and spaces."> placeholder="Enter your full name">

<!-- Customer's Email -->
<label for="email">What is your email?</label>
<input type="email" id="email" name="email" required placeholder="Enter a valid email">

<!-- T-Shirt Colour -->
<label for="colour">What colour should this t-shirt be?</label>
<select id="colour" name="colour" required>
<option value="">Select a colour</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
</select>

<!-- T-Shirt Size -->
<label for="size">What size would you like?</label>
<select id="size" name="size" required>
<option value="">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>
</fieldset>
<!-- Submit Button -->
<button type="submit">Submit Order</button>
</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h2>By SARA AMIRI </h2>
</footer>
</body>
</html>