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
97 changes: 80 additions & 17 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,88 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>My form exercise</title>
<title>My Form</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-->
<h2>By HOMEWORK SOLUTION</h2>
</footer>
<center>
<header>
<h1>Product Pick</h1>
</header>

<main>
<form>
<fieldset>
<legend align="center">Customer Information</legend>

<label for="name">Name:</label>
<input
type="text"
id="name"
name="name"
pattern="[A-Za-z\s]+"
title="Please enter a valid name (letters and spaces only)."
minlength="2"
required
/>
<br /><br />

<label for="email">Email:</label>
<input type="email" id="email" name="email" required />
<br /><br />
<label>T-Shirt Colour: </label>
Copy link

Choose a reason for hiding this comment

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

Do you think the radio buttons could have their own fieldset or a div for accessibility and screen reader support?

<fieldset>
<legend align="center">T-Shirt Colour: </legend>
<br />
<input
type="radio"
id="white"
name="color"
value="white"
required
/>
<label for="white">White</label>

<br />
<input
type="radio"
id="black"
name="color"
value="black"
required
/>
<label for="black">Black</label>
<br />
<input
type="radio"
id="green"
name="color"
value="green"
required
/>
<label for="green">Green</label>
</fieldset>
<br /><br />
<label for="size">T-Shirt Size: </label>
<select id="size" name="size" required>
<option value="" disabled selected>-- Please Choose 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>
<br /><br />
<button type="submit">Submit Order</button>
</fieldset>
</form>
</main>

<footer>
<h2>By Maher Abou Albourgol - 2025 September Cohort - London</h2>
</footer>
</center>
</body>
</html>
</html>
33 changes: 0 additions & 33 deletions Wireframe/index.html

This file was deleted.

89 changes: 0 additions & 89 deletions Wireframe/style.css

This file was deleted.