Skip to content

Manchester |may-25 |ITP | Wala Taha |Sprint2 Form-Control #575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
60 changes: 49 additions & 11 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,64 @@
<!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" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>T-Shirt Order Form</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<header>
<h1>Product Pick</h1>
<h1>T-Shirt Order Form</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-->
<fieldset>
<legend>Customer Information</legend>

<label for="name">Full Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your full name" required minlength="2"><br><br>

<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required><br><br>
</fieldset>

<fieldset>
<legend>Choose a Color</legend>

<input type="radio" id="red" name="color" value="red" required>
<label <input type="radio" id="blue" name="color" value="blue">

Choose a reason for hiding this comment

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

The HTML doesn't look correct here. What should this be doing?

<label for="blue">Blue</label>

<input type="radio" id="green" name="color" value="green">
<label for="green">Green</label>
</fieldset><br>

<fieldset>
<legend>Choose a Size</legend>

<input type="radio" id="XS" name="size" value="XS" required>
<label for="XS">XS</label>

<input type="radio" id="S" name="size" value="S">
<label for="S">S</label>

<input type="radio" id="M" name="size" value="M">
<label for="M">M</label>

<input type="radio" id="L" name="size" value="L">
<label for="L">L</label>

<input type="radio" id="XL" name="size" value="XL">
<label for="XL">XL</label>

<input type="radio" id="XXL" name="size" value="XXL">
<label for="XXL">XXL</label>
</fieldset><br>

<button type="submit">Submit</button>
</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
</footer>
</body>
Expand Down