Skip to content
Closed
Changes from 8 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
90 changes: 65 additions & 25 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<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>
</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>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
</footer>
</body>
</html>

<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<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>
</header>
<main>
<form>
<div>
<label for="name">Customer Name: </label>
<input type="text" name="name" id="name" placeholder="enter your name" required minlength="2"
Comment thread
Lavanya-Projects marked this conversation as resolved.
pattern=".*\S.*\S.*">
</div><br />
<div>
<label for="email">Customer Email: </label>
<input type="email" name="email" id="email" placeholder="you@example.com" required>
</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>

@Poonam-raj Poonam-raj May 20, 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.

I would consider wrapping this in a <fieldset> tag to group the related inputs which are to do with colours

</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>
Comment thread
Lavanya-Projects marked this conversation as resolved.
Outdated
Comment thread
Lavanya-Projects marked this conversation as resolved.
Outdated
</div> <br />
<button type="submit">Submit</button>

</form>
</main>
<footer>
<p>By LAVANYA</p>
</footer>
</body>

</html>
Loading