Conversation
DorotaLeniecDev
left a comment
There was a problem hiding this comment.
Fix HTML formating and remove unnecessary class names
src/index.html
Outdated
| <meta name="viewport" | ||
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" |
There was a problem hiding this comment.
Fix formatting
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | |
| <meta | |
| name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | |
| > |
src/index.html
Outdated
|
|
||
| <body> | ||
| <h1>HTML Form</h1> | ||
|
|
There was a problem hiding this comment.
Spaces between parent and child are not needed, remove
src/index.html
Outdated
| <form action="https://mate-academy-form-lesson.herokuapp.com/create-application" | ||
| method="post" name="personal-information"> |
There was a problem hiding this comment.
Fiz formatting:
Also name should be camelCase
| <form action="https://mate-academy-form-lesson.herokuapp.com/create-application" | |
| method="post" name="personal-information"> | |
| <form | |
| action="https://mate-academy-form-lesson.herokuapp.com/create-application" | |
| method="post" | |
| name="personal-information" | |
| > |
src/index.html
Outdated
| <label for="surname">Surname: | ||
| <input | ||
| type="text" | ||
| autocomplete="off" | ||
| id="surname" | ||
| name="surname" | ||
| > | ||
| </label> |
There was a problem hiding this comment.
Fix formatting:
| <label for="surname">Surname: | |
| <input | |
| type="text" | |
| autocomplete="off" | |
| id="surname" | |
| name="surname" | |
| > | |
| </label> | |
| <label for="surname"> | |
| Surname: | |
| <input | |
| type="text" | |
| autocomplete="off" | |
| id="surname" | |
| name="surname" | |
| > | |
| </label> |
src/index.html
Outdated
| </div> | ||
|
|
||
| <div class="input name"> | ||
| <label for="name">Name: |
There was a problem hiding this comment.
Same here, check all documnent and fix formatting
src/index.html
Outdated
| > | ||
| </label> | ||
| </div> | ||
|
|
src/index.html
Outdated
| <input | ||
| type="radio" | ||
| name="cats" | ||
| id="cats yes" |
There was a problem hiding this comment.
Do not add two ids, you can use for example catLoverYes
|
|
||
| <div class="input cars"> | ||
| <label for="cars">What are your favorite brand of cars? | ||
| <select |
src/index.html
Outdated
| <form action="https://mate-academy-form-lesson.herokuapp.com/create-application" | ||
| method="post" name="personal-information"> | ||
|
|
||
| <fieldset class="form-field personal-information"> |
There was a problem hiding this comment.
You dont need additional classes for fieldset, remove in whole HTML and use only form-field class, I would suggest to rename it to form-fieldset for consistancy
src/index.html
Outdated
|
|
||
| <fieldset class="form-field personal-information"> | ||
| <legend>Personal information</legend> | ||
| <div class="input surname"> |
There was a problem hiding this comment.
Same here, use single class for styling input container and name class more descriptively like form-field
|
I made changes as suggested, it should be fine now. |
darokrk
left a comment
There was a problem hiding this comment.
Please fix code indentations in whole file and we are ready to go 👍🏽
|
|
||
| <body> | ||
| <h1>HTML Form</h1> | ||
| <form |
There was a problem hiding this comment.
Please fix the formatting of the code. You have to use the correct code indentations.
Look Dorota's mentions before and apply it in the whole code :)
<form
action="https://mate-academy-form-lesson.herokuapp.com/create-application"
method="post"
name="personalInformation"
>
|
done |
DorotaLeniecDev
left a comment
There was a problem hiding this comment.
Few more and we are good to go
src/index.html
Outdated
| <meta | ||
| charset="UTF-8" | ||
| > |
There was a problem hiding this comment.
Overall when there is less than 3 attributes in a tag there is no need for spreading it into several lines. We do it when the attribute list is long for readability so this should simply be:
| <meta | |
| charset="UTF-8" | |
| > | |
| <meta charset="UTF-8"> |
src/index.html
Outdated
| content="width=device-width, user-scalable=no, initial-scale=1.0, | ||
| maximum-scale=1.0, minimum-scale=1.0" |
There was a problem hiding this comment.
Dont spread attribute value, put it in a one line
| content="width=device-width, user-scalable=no, initial-scale=1.0, | |
| maximum-scale=1.0, minimum-scale=1.0" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" |
| <input | ||
| type="radio" | ||
| name="cats" | ||
| id="catsYes" | ||
| > | ||
| Yes | ||
|
|
||
| <input | ||
| type="radio" | ||
| name="cats" | ||
| id="catsNo" | ||
| > | ||
| No |
There was a problem hiding this comment.
Make Yes and No values a clicable lables so it focuses on the correct input when clicked
| <label for="cars"> | ||
| What are your favorite brand of cars? | ||
|
|
||
| <select |
There was a problem hiding this comment.
Fix formating for this select tag, add indentations
src/index.html
Outdated
| name="cars" | ||
| id="cars" | ||
| multiple> |
There was a problem hiding this comment.
Fix formating for this select tag, add indentations like:
| name="cars" | |
| id="cars" | |
| multiple> | |
| <select | |
| name="cars" | |
| id="cars" | |
| multiple | |
| > |
src/index.html
Outdated
| type="submit" | ||
| value="Submit" | ||
| > | ||
|
|
|
Finally i had some time to fix this. Can i also please to run tests for hello world task? |
https://arturgorniak.github.io/layout_html-form/
https://arturgorniak.github.io/layout_html-form/report/html_report/