Skip to content
Closed
Changes from 6 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
48 changes: 42 additions & 6 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,51 @@ <h1>Product Pick</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-->
<div>
<label>Customer Name: </label>
<input required minlength="2" pattern=".*\S.*\S.*">

@Poonam-raj Poonam-raj May 15, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Recommended to have id and name fields here (name field helps data be identified, id helps elements get identified for CSS) -> this is the same for the email input

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hi Poonam, Thank you for reviewing my code. I did some changes based on the feedback... Looking forward to receive the reply

</div><br/>
<div>
<label>Customer Email: </label>
<input type="email" required placeholder="you@example.com">
</div>
<div>
<p>Choose a T‑shirt colour:</p>

<label>
<input type="radio" name="colour" value="red" required>
Red
</label>

<label>
<input type="radio" name="colour" value="blue">
Blue
</label>

<label>
<input type="radio" name="colour" value="black">
Black
</label>
</div>
<div>
<p>Choose a T‑shirt size:</p>

<select 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>
</div> <br/>
<button type="submit">Submit</button>

</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>By LAVANYA</p>
</footer>
</body>
</html>
Loading