Skip to content

Control form #533

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 7 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
61 changes: 54 additions & 7 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,64 @@
<header>
<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-->
</form>


<div>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required minlength="2" pattern="[A-Za-z ]{2,}"
placeholder="Enter your full name" aria-required="true">
<small>Minimum 2 alphabetical characters (required)</small>
</div>

<!-- Email Field -->
<div>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required
placeholder="[email protected]" aria-required="true">
<small>Required for order confirmation</small>
</div>

<!-- T-shirt Options -->
<fieldset>
<legend>Choose T-shirt Color</legend>
<div>
<input type="radio" id="color-red" name="color" value="red" required>
<label for="color-red">Red</label><br>

<input type="radio" id="color-blue" name="color" value="blue">
<label for="color-blue">Blue</label><br>

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

<!-- Size Selection -->
<fieldset>
<legend>Choose T-shirt Size</legend>
<div>
<label for="size">Size:</label>
<select id="size" name="size" required>
<option value="" disabled selected>-- Please select --</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>
</div>
</fieldset>

<button type="submit">Place Order</button>


</form>
</main>
<footer>
<!-- change to your name-->
<h2>By HOMEWORK SOLUTION</h2>
<h2>Mouawia Elkhalifa</h2>
</footer>
</body>
</html>
2 changes: 1 addition & 1 deletion Wireframe/index.html

Choose a reason for hiding this comment

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

this is the file you reverted back to original, is it ?

Copy link
Author

Choose a reason for hiding this comment

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

yes it is

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ <h2>Title</h2>
</p>
</footer>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ article {
> img {
grid-column: span 3;
}
}
}