-
-
Notifications
You must be signed in to change notification settings - Fork 397
London | 26-ITP-Jan| Daniel Solomon| Sprint 1 | Wireframe #975
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
base: main
Are you sure you want to change the base?
Conversation
modified: Wireframe/index.html
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
4 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cjyuan
left a comment
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.
-
The Changelist section should include a brief description of the changes you made in this PR. Can you make the description more informative?
-
According to https://validator.w3.org/, there is a warning in your code.
Can you address the warning?
| <section> | ||
| <h2>Order a T-shirt</h2> | ||
| <form> | ||
| <label for="name">Full Name:</label> | ||
| <input | ||
| type="text" | ||
| id="name" | ||
| name="name" | ||
| minlength="2" | ||
| pattern="^(?!\s*$).+" | ||
| autocomplete="name" | ||
| required | ||
| title="Name must be at least 2 characters and not just spaces." | ||
| /> | ||
| <button type="submit" aria-label="Submit T-shirt order">Submit</button> | ||
| </form> | ||
| </section> |
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.
Why is there a form element in the wireframe implementation?
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.
The
element is included because it provides the functional logic for the interaction. Even in a wireframe, it serves three main purposes:Native Validation: It enables the browser to enforce the required, minlength, and pattern rules automatically.
Accessibility: It tells screen readers that these elements are related, and it allows users to submit by pressing the "Enter" key.
Data Handling: It acts as a container that captures the input data to be sent to a server or processed by a script.
| <img src="https://docs.github.com/assets/cb-55933/mw-1440/images/help/repository/readme-links.webp" | ||
| alt="Scrabble tiles spelling out README on top of papers"> | ||
| <h2>What is the purpose of a README file?</h2> | ||
| <p>A README file introduces and explains a project. It usually contains instructions on how to install, use, and contribute to the project. It helps others quickly understand the purpose and usage of your code.</p> |
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.
Line 22 can be better formatted as:
<p>
A README file introduces and explains a project. It usually contains
instructions on how to install, use, and contribute to the project. It
helps others quickly understand the purpose and usage of your code.
</p>
To understand why, you can ask AI these questions:
- How HTML treats multiple whitespace characters in text?
- What's the advantage of not writing a long paragraph of text in a single line in HTML?
VSCode's "Format Document" feature can help us format our code for better readability and consistency, including breaking a long line of text into shorter lines of text.
To use the feature, right-click inside the code editor and select the option.
Please note that if there are syntax errors in the code, the "Prettier" extension may not format HTML code properly.
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 have updated line 22
|
Did you forget to push your changes to GitHub? |
|
Please note that in CYF courses, the recommended way to inform the reviewer of your changes is to do both of the following:
|

Learners, PR Template
Self checklist
Changelist
I have cahnged the given default html by my own code to make it work as recquired
I moified the Cs code by my own and improved the light house test to 100