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
33 changes: 27 additions & 6 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,36 @@ <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-->
<!-- label for the name input -->
<label for="name">Name:</label>
<input type="text" id="name" name="name" required pattern=".*\S.*\S.*"><br><br>

<!-- label for the email input -->
<label for="email">Email:</label>
<input type="email" id="email" name="email" required><br><br>

<!--fieldset for tshirt color-->
<fieldset>
<legend>T-Shirt Color</legend>
<label><input type="radio" id="red" name="tshirt-color" value="red" required>Red</label><br>
<label><input type="radio" id="blue" name="tshirt-color" value="blue" required>Blue</label><br>
<label><input type="radio" id="green" name="tshirt-color" value="green" required>Green</label><br>
</fieldset><br>

<!-- fieldset for tshirt size-->
<fieldset>
<legend>T-Shirt Size</legend>
<label><input type="checkbox" id="extra-small" name="tshirt-size" value="extra-small" required>XS</label><br>
<label><input type="checkbox" id="small" name="tshirt-size" value="small" required>S</label><br>
<label><input type="checkbox" id="medium" name="tshirt-size" value="medium" required>M</label><br>
<label><input type="checkbox" id="large" name="tshirt-size" value="large" required>L</label><br>
<label><input type="checkbox" id="extra-large" name="tshirt-size" value="extra-large" required>XL</label><br>
</fieldset><br>
<button type="submit">Submit</button>
</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
<p>By FATIMA ROUCHI</p>
</footer>
</body>
</html>
Loading