Skip to content

PAWEL BROILO I MODULE ONBOARDING I FORM CONTROLS #719

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 2 commits into
base: main
Choose a base branch
from
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
90 changes: 80 additions & 10 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,95 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>My form exercise</title>
<meta name="description" content="" />
<title>Form Controls</title>
<meta
name="description"
content="A form to select user details and products"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- <meta name="theme-color" content="#ffffff" /> -->
<!-- 'theme-color' meta tag is not supported by Firefox, Firefox for Android, Opera -->
</head>
<body>
<header>
<h1>Product Pick</h1>
<h1>Users and Products</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 aria-labelledby="form-title" role="form">
<h2 id="form-title">User Details</h2>

<div>
<label for="name">Name:</label>
<input
type="text"
id="name"
name="name"
placeholder="Enter your name"
required
aria-required="true"
title="Enter your name"
/>
</div>

<div>
<label for="email">Email:</label>
<input
type="email"
id="email"
name="email"
placeholder="Enter your email"
required
aria-required="true"
title="Enter your email address"
/>
</div>

<fieldset>
<legend>Choose a color:</legend>
<div>
<input type="radio" id="red" name="color" value="red" required />
<label for="red">Red</label>
</div>
<div>
<input type="radio" id="blue" name="color" value="blue" />
<label for="blue">Blue</label>
</div>
<div>
<input type="radio" id="black" name="color" value="black" />
<label for="black">Black</label>
</div>
</fieldset>

<div>
<label for="size">Choose a Size:</label>
<select
name="size"
id="size"
required
aria-required="true"
title="Choose a Size"
>
<option value="" disabled selected>
--Please choose an option--
</option>
<option value="XS">Extra Small</option>
<option value="S">Small</option>
<option value="M">Medium</option>
<option value="L">Large</option>
<option value="XL">Extra Large</option>
<option value="XXL">Extra Extra Large</option>
</select>
</div>

<div>
<button type="submit">Submit</button>
</div>
</form>
</main>

<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<p>By Pawel Broilo</p>
</footer>
</body>
</html>
46 changes: 0 additions & 46 deletions index.html

This file was deleted.