generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 417
Sheffield | 26-Jan-ITP | Karim Mhamdi | Sprint 2 | Form Controls #1102
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
KKtech06
wants to merge
15
commits into
CodeYourFuture:main
Choose a base branch
from
KKtech06:feature/form-controls
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+121
−14
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3383490
Implement wireframe layout for AFCON page
KKtech06 47ac9af
Complete wireframe webpage with semantic HTML, CSS grid layout, and a…
KKtech06 caac86b
Trigger CI re-run
KKtech06 ada7f2c
Trigger CI re-run
KKtech06 23d0dc6
Trigger CI re-run
KKtech06 1f69ca6
Fix layout and accessibility issues from review
KKtech06 37ef30d
Fix issues from review feedback
KKtech06 07aa245
Fix layout and accessibility issues from review
KKtech06 5f454f2
Fix footer overlap and improve article alignment
KKtech06 05ffb4d
Fixed footer
KKtech06 ea33d48
Complete form controls task with semantic HTML and accessibility
KKtech06 a48cbd9
Update form title for Form Controls task
KKtech06 b172696
Minor spacing adjustment in form
KKtech06 a1e107b
Wireframe updated
KKtech06 5a3d451
Merge branch 'CodeYourFuture:main' into feature/form-controls
KKtech06 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
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 |
|---|---|---|
|
|
@@ -6,22 +6,129 @@ | |
| <title>My form exercise</title> | ||
| <meta name="description" content="" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <h1>Product Pick</h1> | ||
| </head> | ||
| <body> | ||
| <header> | ||
|
|
||
| <h1><em>T-Shirt Selections</em></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> | ||
| <form> | ||
| <table> | ||
|
|
||
| <!--Login Section--> | ||
| <legend><strong>Customer Details</strong></legend> | ||
|
|
||
|
|
||
| <tr> | ||
|
|
||
| <td><label for="name">Name</label></td> | ||
| <td><input | ||
| type="text" | ||
| id="name" | ||
| name="name" | ||
| minlength="2" | ||
| required ></td> | ||
|
Comment on lines
+28
to
+33
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently a user can enter a name consisting of only space characters (e.g., " "). Can you enforce a stricter validation rule using the |
||
|
|
||
|
|
||
| </tr> | ||
|
|
||
| <tr> | ||
|
|
||
| <td><label for="email">Email</label></td> | ||
| <td><input | ||
| type="email" | ||
| id="email" | ||
| name="email" | ||
| required ></td> | ||
|
|
||
| </tr> | ||
|
|
||
| </table> | ||
|
|
||
| <br> | ||
|
|
||
| <button>Submit</button> | ||
|
|
||
|
|
||
| <br> | ||
| <!--Color Section--> | ||
|
|
||
| <fieldset> | ||
|
|
||
| <legend> | ||
| T-shirt Colour | ||
| </legend> | ||
|
|
||
| <label> | ||
| <input type="radio" name="Colour" value="red" required> | ||
| Red | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="Colour" value="blue"> | ||
| Blue | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="Colour" value="black"> | ||
| Black | ||
| </label> | ||
|
|
||
| </fieldset> | ||
|
|
||
| <!--Size Section--> | ||
|
|
||
| <br> | ||
|
|
||
| <fieldset> | ||
|
|
||
| <legend> | ||
| T-shirt Sizes | ||
| </legend> | ||
|
|
||
|
|
||
| <label> | ||
| <input type="radio" name="Size" value="XS" required> | ||
| XS | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="Size" value="S"> | ||
| S | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="Size" value="M"> | ||
| M | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="Size" value="L"> | ||
| L | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="Size" value="XL"> | ||
| XL | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="Size" value="XXL"> | ||
| XXL | ||
|
|
||
| </label> | ||
|
|
||
| </fieldset> | ||
|
|
||
| </form> | ||
| </main> | ||
| <footer> | ||
| <!-- change to your name--> | ||
| <h2>By HOMEWORK SOLUTION</h2> | ||
|
|
||
| <h2>By Karim M'hamdi</h2> | ||
|
|
||
| </footer> | ||
| </body> | ||
| </html> | ||
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 |
|---|---|---|
|
|
@@ -30,4 +30,4 @@ <h2>Title</h2> | |
| </p> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
| </html> | ||
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 |
|---|---|---|
|
|
@@ -86,4 +86,4 @@ article { | |
| > img { | ||
| grid-column: span 3; | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
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.
I don't think it is a good practice to use
tableto layout form elements.For this exercise, just use
<div>or<br>to create enough space to pass the Lighthouse accessibility check.