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
94 changes: 84 additions & 10 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,93 @@
</head>
<body>
<header>
<h1>Product Pick</h1>
<h1>Amazing T-shirts</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>
<! -- User Personal Information Section -->
<div>
<p><label for="firstName">First Name:</label>
<input type="text" pattern="^[A-Za-z]{2,}$" id="firstName"
name="firstName" autocomplete="on" minlength="2" required autofocus > </p>
<p><label for="lastName">Last Name:</label>
<input type="text" pattern="^[A-Za-z]{2,}$" id="lastName"
name="lastName" autocomplete="on" minlength="2" required></p>
<p><label for="email">Email:</label>
<input type="email" id="email" name="email" ``
autocomplete="on" required
pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"
title="Please enter a valid email address (example: name@example.com)"></p>

</div>

<h2><strong>T-Shirt Size:</strong></h2>
<div>
<label>
<input type="radio" name="size" value="XS" required>
Extra Small
</label>
<br><br>
</div>
</div>
<label>
<input type="radio" name="size" value="S" required>
Small
</label>
<br><br>
</div>
<div>
<label>
<input type="radio" name="size" value="M" required>
Medium
</label>
<br><br>
</div>
<div>
<label>
<input type="radio" name="size" value="L" required>
Large
</label>
<br><br>
</div>
<div>
<label>
<input type="radio" name="size" value="XL" required>
Extra Large
</label>
<br><br>
</div>

<h2><strong>Color Preference:</strong></h2>
<div>
<label>
<input type="radio" name="color" value="red" required>
Red
</label>
<br><br>
</div>
</div>
<label>
<input type="radio" name="color" value="blue" required>
Blue
</label>
<br><br>
</div>
<div>
<label>
<input type="radio" name="color" value="black" required>
Black
</label>
<br><br>
</div>

<! -- Submit Button -->
<button type="submit">Submit</button>

</form>
</main>

<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
</footer>
</body>
<p>Contact: Hayriye Saricicek <a href="mailto:mshayriyesaricicek@gmail.com">mshayriyesaricicek@.com</a></p>
</footer> </body>
</html>