Skip to content
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
47 changes: 43 additions & 4 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,54 @@ <h1>Product Pick</h1>
</header>
<main>
<form>
<!-- write your html here-->
<label for="name">Name:</label>
<input type="text" id="name" name="name" required
minlength="2" pattern="^[A-Za-z ]{2,}$"
title="Name must be at least 2 letters and contain only letters"
/>
<br /><br />
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="[email protected]" required />
<br /><br />
<button type="submit">Submit</button>
Copy link

Copilot AI Jan 17, 2026

Choose a reason for hiding this comment

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

The submit button is placed before the color and size selection fields. This creates a confusing user experience as users would typically expect the submit button to appear after all form fields. The submit button should be moved to the end of the form, after all input fields have been collected.

Copilot uses AI. Check for mistakes.
<br />
<br />
<fieldset>
<legend>Please select a color:</legend>
<input type="radio" id="black" name="color" value="black" />
<label for="black">black</label>
<br />
<br />
<input type="radio" id="blue" name="color" value="blue" />
<label for="blue">blue</label>
<br />
<br />
<input type="radio" id="red" name="color" value="red" />
<label for="red">red</label>
<br />
<br />
</fieldset>
<label for="size">Please select a size:</label>
<select id="size" name="size" required>
<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 />
<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
What is the customer's name? I must collect this data, and validate it.
But what is a valid name? I must decide something.
What is the customer's email? I must make sure the email is valid. Email addresses have a consistent pattern.
What colour should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colours?
What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL-->
</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h2>By Oussama Mouggal sponsored by Codeyourfuture </h2>
</footer>
</body>
</html>
2 changes: 1 addition & 1 deletion Wireframe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ <h2>Title</h2>
</p>
</footer>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ article {
> img {
grid-column: span 3;
}
}
}
46 changes: 0 additions & 46 deletions index.html

This file was deleted.