generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 354
West Midlands | ITP-Sept-2025 | Ali Naru | Sprint 2 | Form Controls #879
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
Closed
Closed
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f117fb3
Create Index.html
MohammedNaru ca525c5
Create Style.css
MohammedNaru 64c3817
Merge branch 'CodeYourFuture:main' into Form-Controls
MohammedNaru c091077
Refactored Form-Controls, Removed CSS
MohammedNaru 20c2a28
Remove Index.html and Style.css files
MohammedNaru 635d6ab
Refactor index.html for improved structure and accessibility
MohammedNaru c2e82c3
Update form title and Removed checkbox to meet criteria
MohammedNaru 9fee712
Refactor form layout and improve accessibility by adding styles and r…
MohammedNaru 1ed502d
Removed Checkbox
MohammedNaru d39194b
Refactor form elements for improved layout and accessibility
MohammedNaru File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,83 @@ | ||
| <!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 name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Form Controls Project</title> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <h1>Product Pick</h1> | ||
| </header> | ||
| <main> | ||
| <h1>Order Form</h1> | ||
| <form> | ||
| <!-- write your html here--> | ||
| <!-- | ||
| try writing out the requirements first as comments | ||
| this will also help you fill in your PR message later--> | ||
| <!-- Name --> | ||
| <label for="name">Full Name:</label> | ||
| <input | ||
| type="text" | ||
| id="name" | ||
| name="name" | ||
| required | ||
| minlength="2" | ||
| pattern="^[A-Za-z\s'-]{2,}$" | ||
| placeholder="Enter your full name" | ||
| title="Name must be at least 2 letters and contain only letters, spaces, apostrophes, or hyphens." | ||
| style="margin-bottom: 16px; display: block;" | ||
| /> | ||
|
|
||
| <!-- Email --> | ||
| <label for="email">Email:</label> | ||
| <input | ||
| type="email" | ||
| id="email" | ||
| name="email" | ||
| required | ||
| placeholder="example@email.com" | ||
| pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$" | ||
| title="Please enter a valid email address (e.g. user@example.com)" | ||
| style="margin-bottom: 16px; display: block;" | ||
| /> | ||
|
|
||
| <!-- Color selection --> | ||
| <fieldset style="margin-bottom: 16px;"> | ||
| <legend>Choose a Colour:</legend> | ||
| <label style="display: inline-block; margin-right: 24px; padding: 8px 0;"> | ||
| <input type="radio" name="colour" value="red" required style="width: 24px; height: 24px; vertical-align: middle; margin-right: 8px;" /> | ||
| Red | ||
| </label> | ||
| <label style="display: inline-block; margin-right: 24px; padding: 8px 0;"> | ||
| <input type="radio" name="colour" value="green" style="width: 24px; height: 24px; vertical-align: middle; margin-right: 8px;" /> | ||
| Green | ||
| </label> | ||
| <label style="display: inline-block; padding: 8px 0;"> | ||
| <input type="radio" name="colour" value="blue" style="width: 24px; height: 24px; vertical-align: middle; margin-right: 8px;" /> | ||
| Blue | ||
| </label> | ||
| </fieldset> | ||
|
|
||
| <!-- Size selection --> | ||
| <label for="size">Choose a Size:</label> | ||
| <select id="size" name="size" required style="margin-bottom: 16px; display: block; min-height: 44px;"> | ||
| <option value="">--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> | ||
|
|
||
| <!-- Checkbox --> | ||
| <label class="checkbox" style="display: block; margin-bottom: 16px; padding: 8px 0;"> | ||
| <input type="checkbox" name="agree" required style="width: 24px; height: 24px; vertical-align: middle; margin-right: 8px;" /> | ||
| Place Order | ||
| </label> | ||
|
|
||
| <!-- Submit --> | ||
| <button type="submit" style="min-width: 48px; min-height: 48px;">Submit</button> | ||
| </form> | ||
| </main> | ||
|
|
||
| <footer> | ||
| <!-- change to your name--> | ||
| <h2>By HOMEWORK SOLUTION</h2> | ||
| <h2>By Muhammad Naru</h2> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
| </html> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the use of this checkbox?