Skip to content
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
87 changes: 64 additions & 23 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,68 @@
<!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>

<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Retails Store Order Form</title>
<meta name="description" content="The form collects client details about their purchase, item characteristics." />
</head>

<body>
<header>
<h1>T-Shirt Order Form</h1>
</header>
<main>
<div class="box-form">
<form>
<!-- write your html here-->
<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
<fieldset class="user-details">
<legend><strong>Customer Member Details</strong></legend>
<div class="form-control">
<label for="Username">User Name</label>

Choose a reason for hiding this comment

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

There is a small error here related to the <label> and <input> elements. Can you find it?

<input type="text" id="username" name="username" placeholder="Username" minlength="2" required>
</div>
<div class="form-control">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="[email protected]" required>
</div>
</fieldset>
<fieldset class="form-color">
<legend><strong>Please select the color for your order:</strong></legend>
<ul>
<li>
<label for="red">Red</label>
<input type="radio" id="red" name="color" value="red" required />
</li>
<li>
<label for="yellow">Yellow</label>
<input type="radio" id="yellow" name="color" value="yellow" />
</li>
<li>
<label for="blue">Blue</label>
<input type="radio" id="blue" name="color" value="blue" />
</li>
</ul>
</fieldset>
<fieldset>
<legend><strong>Please select your size for your order:</strong></legend>
<label for="size-selection">size:</label>
<select name="size" id="size-selection" required>
<option value="" disabled selected>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">XL</option>

Choose a reason for hiding this comment

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

Small error here in your XL option.

</select>
</fieldset>
<button type="submit">Submit Order </button>
</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
</footer>
</body>
</html>
</div>
</main>
<footer>
<h2>By Karla Grajales</h2>
Copy link

@jenny-alexander jenny-alexander Jan 15, 2026

Choose a reason for hiding this comment

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

🤔 Considering using a different HTML element for your name within the footer. Right now, having <h2> in the header will signal to screen readers that there is something new and important in the footer. In a sense, it breaks the semantic order of the page.

</footer>
</body>
</html>