Skip to content

London_cohort| Aung Ye Kyaw | Module-Onboarding | Week1|Formcontrol #263

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 9 commits 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
39 changes: 34 additions & 5 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
@@ -13,15 +13,44 @@ <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="u_name">Name</label><br>
<input type="text" name="u_name" id="u_name" placeholder="Enter your name" pattern="^[a-zA-Z\s]{2,}$"
title="User name should contain at least 2 characters, only letter and spaces" required />
<br><br>

<label for="email">E-mail</label><br>
<input type="email" name="email" id="email" placeholder="Enter your e-mail" required />
<br><br>


<fieldset>
<legend>Choose One Color</legend>
<input type="radio" name="shirt_color" required/><label for="red">Red</label>
<input type="radio" name="shirt_color" /><label for="green">Green</label>
<input type="radio" name="shirt_color" /><label for="blue">Blue</label>
</fieldset>
<br><br>


<label for="size">Select Size</label> <br>
<select name="size" required>
<option value="" selected >--Select 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>
<input type="submit" value="Submit">

</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<p>Aung Ye Kyaw</p>
</footer>
</body>
</html>