-
Notifications
You must be signed in to change notification settings - Fork 609
HTML FORM #787
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
Sadeni-09
wants to merge
9
commits into
mate-academy:master
Choose a base branch
from
Sadeni-09:develop
base: master
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.
Open
HTML FORM #787
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a15b545
add task solution
Sadeni-09 ce5482f
add task solutin
Sadeni-09 0967119
add task solution
Sadeni-09 8087671
add task solution
Sadeni-09 67c7162
add task solution
Sadeni-09 4ea7fbb
add task solution
Sadeni-09 21f9cf9
add HTML form
Sadeni-09 cb31fa6
HTML form modified
Sadeni-09 bf6c936
add html layout
Sadeni-09 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
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 |
|---|---|---|
| @@ -1,17 +1,164 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <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" | ||
| > | ||
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| <title>HTML Form</title> | ||
| <link rel="stylesheet" href="./style.css"> | ||
| </head> | ||
|
|
||
| <body> | ||
| <h1>HTML Form</h1> | ||
| <script type="text/javascript" src="./main.js"></script> | ||
| <form action="https://mate-academy-form-lesson.herokuapp.com/create-application" method="post"> | ||
| <fieldset class="groupField"> | ||
| <legend>Personal information:</legend> | ||
| <label class="form-field"> | ||
| Surname: | ||
| <input | ||
| type="text" | ||
| name="surname" | ||
| autocomplete="off" | ||
| > | ||
| </label> | ||
|
|
||
| <label class="form-field"> | ||
| Name: | ||
| <input | ||
| type="text" | ||
| name="name" | ||
| required | ||
| autocomplete="off" | ||
| > | ||
| </label> | ||
|
|
||
| <label class="form-field"> | ||
| How old are You? | ||
| <input | ||
| type="number" | ||
| name="age" | ||
| value="12" | ||
| min="1" | ||
| max="100" | ||
| > | ||
| </label> | ||
|
|
||
| <label class="form-field"> | ||
| Full date of birth: | ||
| <input | ||
| type="date" | ||
| name="dateOfBirth" | ||
| value="mm/dd/yyyy" | ||
| > | ||
Anastasiia-Svintsova marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </label> | ||
|
|
||
| <label> | ||
| I accept the term of the agreement | ||
| <input type="checkbox" name="terms"> | ||
| </label> | ||
| </fieldset> | ||
|
|
||
| <fieldset class="groupField"> | ||
| <legend>Registration:</legend> | ||
| <label for="email" class="form-field"> | ||
| E-mail: | ||
| <input | ||
| type="email" | ||
| name="email" | ||
| placeholder="email@example.com" | ||
| required | ||
| > | ||
| </label> | ||
|
|
||
| <label> | ||
| Password: | ||
| <input | ||
| type="password" | ||
| name="password" | ||
| required | ||
| > | ||
| </label> | ||
| </fieldset> | ||
|
|
||
| <fieldset class="groupField"> | ||
| <legend>An interesting fact about you!</legend> | ||
| <div class="form-field"> | ||
| Do you love cats? | ||
| <label> | ||
| <input type="radio" name="cat"> | ||
| Yes | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="cat"> | ||
| No | ||
| </label> | ||
| </div> | ||
| <label class="form-field"> | ||
| What is your favorite color? | ||
| <input | ||
| type="color" | ||
| name="color" | ||
| value="#000000" | ||
| > | ||
| </label> | ||
|
|
||
| <label class="form-field"> | ||
| What time do you go to bed? | ||
| <input | ||
| type="time" | ||
| name="timeToBed" | ||
| step="2" | ||
| > | ||
| </label> | ||
|
|
||
| <label class="form-field"> | ||
| What are your favorite brands of cars? | ||
| <select name="carBrand" multiple> | ||
| <option value="BMW">BMW</option> | ||
| <option value="Audi">Audi</option> | ||
| <option value="lada">lada</option> | ||
| </select> | ||
| </label> | ||
|
|
||
| <label> | ||
| How do you rate our work? | ||
| <input | ||
| type="range" | ||
| name="rate" | ||
| min="0" | ||
| max="100" | ||
| value="0" | ||
| > | ||
| </label> | ||
| </fieldset> | ||
|
|
||
| <fieldset class="groupField"> | ||
| <legend>Additional info:</legend> | ||
| <label for="comments" class="form-field"> | ||
| Comments: | ||
| <textarea | ||
| class="comment" | ||
| name="comments" | ||
| minlength="50" | ||
| maxlength="300" | ||
| ></textarea> | ||
| </label> | ||
|
|
||
| <label> | ||
| Would you reccomend us? | ||
| <select name="reccomend"> | ||
| <option value="yes">yes</option> | ||
| <option value="no">no</option> | ||
| </select> | ||
| </label> | ||
| </fieldset> | ||
|
|
||
| <button type="submit">Submit</button> | ||
| </form> | ||
| </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 |
|---|---|---|
| @@ -1 +1,9 @@ | ||
| /* styles go here */ | ||
| .groupField { | ||
| margin-bottom: 20px; | ||
| } | ||
|
|
||
| .form-field { | ||
| margin-bottom: 10px; | ||
| display: block; | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.