Conversation
DorotaLeniecDev
left a comment
There was a problem hiding this comment.
Fix formatting and indentations, check this checklist https://github.com/mate-academy/layout_html-form/blob/master/checklist.md
When the code is more readable after fixes we will continue with review
src/index.html
Outdated
| <div> | ||
| Surname: <input type="text" name="Surname:"> | ||
| </div> |
There was a problem hiding this comment.
Add proper labels
Fix formatting
Fix indentations
| <div> | |
| Surname: <input type="text" name="Surname:"> | |
| </div> | |
| <div class="form__section_field"> | |
| <label for="surname">Surname: </label> | |
| <input | |
| type="text" | |
| name="surname" | |
| id="surname" | |
| autocomplete="off" | |
| > | |
| </div> |
Apply this pattern to all other fields
Remember to add spaces between sibling elements for better readability
There was a problem hiding this comment.
Okey, I make fixes please to check again :)
src/index.html
Outdated
|
|
||
| <input | ||
| type="date" | ||
| name="date-birth" |
There was a problem hiding this comment.
Name attibute should be camelCase
| name="date-birth" | |
| name="dateBirth" |
src/index.html
Outdated
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Only one line space between siblings is needed
src/index.html
Outdated
|
|
||
|
|
||
|
|
src/index.html
Outdated
| <textarea | ||
| name="comment" | ||
| id="comment" | ||
| cols="20" | ||
| rows="2" | ||
| autocomplete="off"> | ||
| </textarea> |
src/index.html
Outdated
| <select | ||
| name="recommend" | ||
| id="recommend" | ||
| autocomplete="off"> | ||
|
|
There was a problem hiding this comment.
Fix formatting
| <select | |
| name="recommend" | |
| id="recommend" | |
| autocomplete="off"> | |
| <select | |
| name="recommend" | |
| id="recommend" | |
| autocomplete="off" | |
| > | |
src/index.html
Outdated
| <legend>An interesting fact about you!</legend> | ||
| <div> |
There was a problem hiding this comment.
Add empty line between siblings
src/index.html
Outdated
| <legend>Registration</legend> | ||
| <div> |
There was a problem hiding this comment.
Add empty line - double check if there are empty lines between siblings elements, do not add empty lines between parent and child
src/index.html
Outdated
|
|
||
| <input | ||
| type="radio" | ||
| name="choice" |
There was a problem hiding this comment.
Lets make this name more descriptive so it is easier to use (in scenartio when form is being send)
| name="choice" | |
| name="lovesCats" |
src/index.html
Outdated
| <label for="yes">Yes</label> | ||
|
|
||
| <input type="radio" | ||
| name="choice" |
There was a problem hiding this comment.
Same here
| name="choice" | |
| name="lovesCats" |
src/index.html
Outdated
| <form action="https://mate-academy-form-lesson.herokuapp.com/create-application" class="form"> | ||
| <fieldset> | ||
| <legend>Personal information</legend> | ||
| <div> |
There was a problem hiding this comment.
Be consistant and add class to all form fields wrappers. You can then specify the margins using pseudo selectors in css
There was a problem hiding this comment.
All tips done I hope now its good.
src/index.html
Outdated
|
|
||
| <input | ||
| type="color" | ||
| name="colour" |
There was a problem hiding this comment.
Should be
| name="colour" | |
| name="color" |
src/index.html
Outdated
| autocomplete="off" | ||
| multiple | ||
| > | ||
|
|
src/index.html
Outdated
| > | ||
| </div> | ||
|
|
||
| <div> |
There was a problem hiding this comment.
In my opinion best way is to add form-field class to all divs and in css you can remove margin-bottom in :last-child selector. This is more consistant. It is a separation of duites, that styles will determin how the markup looks.
src/index.html
Outdated
| <input type="radio" | ||
| name="lovesCats" | ||
| id="no" | ||
| autocomplete="off" | ||
| value="No" | ||
| > |
There was a problem hiding this comment.
Fix formatting
| <input type="radio" | |
| name="lovesCats" | |
| id="no" | |
| autocomplete="off" | |
| value="No" | |
| > | |
| <input | |
| type="radio" | |
| name="lovesCats" | |
| id="no" | |
| autocomplete="off" | |
| value="No" | |
| > |
src/index.html
Outdated
| id="recommend" | ||
| autocomplete="off" | ||
| > | ||
|
|

https://Kacper-Leman.github.io/layout_html-form/ - Demo Link
https://Kacper-Leman.github.io/layout_html-form/report/html_report/ - Test Report Link