-
Notifications
You must be signed in to change notification settings - Fork 609
add task solution #776
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: master
Are you sure you want to change the base?
add task solution #776
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,7 +11,172 @@ | |||||||||||||||||
| <link rel="stylesheet" href="./style.css"> | ||||||||||||||||||
| </head> | ||||||||||||||||||
| <body> | ||||||||||||||||||
| <h1>HTML Form</h1> | ||||||||||||||||||
| <form action="https://mate-academy-form-lesson.herokuapp.com/create-application" method="post"> | ||||||||||||||||||
| <fieldset class="form-field"> | ||||||||||||||||||
| <legend>Personal information</legend> | ||||||||||||||||||
|
|
||||||||||||||||||
| <label for="surname">Surname:</label> | ||||||||||||||||||
| <input | ||||||||||||||||||
| type="text" | ||||||||||||||||||
| name="surname" | ||||||||||||||||||
| id="surname" | ||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||
| class="form-input-gap" | ||||||||||||||||||
| > | ||||||||||||||||||
| <br> | ||||||||||||||||||
|
||||||||||||||||||
|
|
||||||||||||||||||
| <label for="name">Name:</label> | ||||||||||||||||||
| <input | ||||||||||||||||||
| type="text" | ||||||||||||||||||
| name="name" | ||||||||||||||||||
| id="name" | ||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||
| class="form-input-gap" | ||||||||||||||||||
| > | ||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
| <label for="age">How old are You?</label> | ||||||||||||||||||
| <input | ||||||||||||||||||
| type="number" | ||||||||||||||||||
| name="age" | ||||||||||||||||||
| id="age" | ||||||||||||||||||
| value="12" | ||||||||||||||||||
| min="1" | ||||||||||||||||||
| max="100" | ||||||||||||||||||
| class="form-input-gap" | ||||||||||||||||||
| > | ||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
| <label for="dateOfBirth">Full date of birth:</label> | ||||||||||||||||||
| <input | ||||||||||||||||||
| type="date" | ||||||||||||||||||
| name="dateOfBirth" | ||||||||||||||||||
| id="dateOfBirth" | ||||||||||||||||||
| class="form-input-gap" | ||||||||||||||||||
| > | ||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
| <label for="term">I accept the term of the agreement</label> | ||||||||||||||||||
| <input | ||||||||||||||||||
| type="checkbox" | ||||||||||||||||||
| name="term" | ||||||||||||||||||
| id="term" | ||||||||||||||||||
| > | ||||||||||||||||||
| </fieldset> | ||||||||||||||||||
|
|
||||||||||||||||||
| <fieldset class="form-field"> | ||||||||||||||||||
| <legend>Registration</legend> | ||||||||||||||||||
|
|
||||||||||||||||||
| <label for="email">E-mail:</label> | ||||||||||||||||||
| <input | ||||||||||||||||||
| type="email" | ||||||||||||||||||
| name="email" | ||||||||||||||||||
| id="email" | ||||||||||||||||||
| placeholder="email@example.com" | ||||||||||||||||||
| required | ||||||||||||||||||
| class="form-input-gap" | ||||||||||||||||||
| > | ||||||||||||||||||
| <br> | ||||||||||||||||||
|
|
||||||||||||||||||
| <label for="password">Password:</label> | ||||||||||||||||||
| <input | ||||||||||||||||||
| type="password" | ||||||||||||||||||
| name="password" | ||||||||||||||||||
| id="password" | ||||||||||||||||||
| minlength="7" | ||||||||||||||||||
| maxlength="32" | ||||||||||||||||||
| required | ||||||||||||||||||
| > | ||||||||||||||||||
| </fieldset> | ||||||||||||||||||
|
|
||||||||||||||||||
| <fieldset class="form-field"> | ||||||||||||||||||
| <legend>An interesting fact about you!</legend> | ||||||||||||||||||
|
|
||||||||||||||||||
| <div class="form-input-gap"> | ||||||||||||||||||
| <label> | ||||||||||||||||||
| Do you love cats? | ||||||||||||||||||
| <span> | ||||||||||||||||||
| <input | ||||||||||||||||||
|
||||||||||||||||||
| <label> | |
| Do you love cats? | |
| <span> | |
| <input | |
| <div> | |
| Do you love cats? | |
| <label> | |
| <input |
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.
Outdated
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.
redundant wrapper. apply styles to your labels
| <div class="form-input-gap"> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,7 @@ | ||
| /* styles go here */ | ||
| .form-field { | ||
| margin-bottom: 20px; | ||
| } | ||
|
|
||
| .form-input-gap { | ||
| margin-bottom: 10px; | ||
| } | ||
|
||

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.