-
Notifications
You must be signed in to change notification settings - Fork 608
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
base: master
Are you sure you want to change the base?
HTML FORM #787
Changes from 7 commits
a15b545
ce5482f
0967119
8087671
67c7162
4ea7fbb
21f9cf9
cb31fa6
bf6c936
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 |
|---|---|---|
| @@ -1,17 +1,163 @@ | ||
| <!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 for="surname" class="form-field"> | ||
| Surname: | ||
| <input | ||
| type="text" | ||
| name="surname" | ||
| autocomplete="off" | ||
| > | ||
|
Sadeni-09 marked this conversation as resolved.
|
||
| </label> | ||
|
|
||
| <label for="name" class="form-field"> | ||
| Name: | ||
| <input | ||
| type="text" | ||
| name="name" | ||
| required | ||
| autocomplete="off" | ||
| > | ||
| </label> | ||
|
|
||
| <label for="age" class="form-field"> | ||
| How old are You? | ||
| <input | ||
| type="number" | ||
| name="age" | ||
| value="12" | ||
| min="1" | ||
| max="100" | ||
| > | ||
|
Sadeni-09 marked this conversation as resolved.
|
||
| </label> | ||
|
|
||
| <label for="dateOfBirth" class="form-field"> | ||
| Full date of birth: | ||
| <input | ||
| type="date" | ||
| name="dateOfBirth" | ||
| value="mm/dd/yyyy" | ||
| > | ||
|
Anastasiia-Svintsova marked this conversation as resolved.
|
||
| </label> | ||
|
|
||
| <label for="terms">I accept the term of the agreement | ||
|
Sadeni-09 marked this conversation as resolved.
Outdated
|
||
| <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 | ||
| > | ||
|
Comment on lines
+67
to
+73
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not fixed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fix the code style |
||
| </label> | ||
|
|
||
| <label for="password"> | ||
|
Sadeni-09 marked this conversation as resolved.
Outdated
|
||
| Password: | ||
| <input | ||
| type="password" | ||
| name="password" | ||
| required | ||
| > | ||
|
Sadeni-09 marked this conversation as resolved.
Comment on lines
+78
to
+82
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fix the code style |
||
| </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> | ||
|
Sadeni-09 marked this conversation as resolved.
|
||
| <input type="radio" name="cat"> | ||
| No | ||
| </label> | ||
| </div> | ||
| <label for="color" class="form-field"> | ||
| What is your favorite color? | ||
| <input | ||
| type="color" | ||
| name="color" | ||
| value="#000000" | ||
| > | ||
|
Comment on lines
+102
to
+106
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not fixed |
||
| </label> | ||
|
|
||
| <label for="timeToBed" class="form-field"> | ||
| What time do you go to bed? | ||
| <input | ||
| type="time" | ||
| name="timeToBed" | ||
| step="2" | ||
| > | ||
|
Comment on lines
+111
to
+115
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
| </label> | ||
|
|
||
| <label for="carBrand" 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 for="rate"> | ||
| How do you rate our work? | ||
| <input | ||
| type="range" | ||
| name="rate" | ||
| min="0" | ||
| max="100" | ||
| value="0" | ||
| > | ||
|
Comment on lines
+129
to
+135
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fix the code style |
||
| </label> | ||
| </fieldset> | ||
|
|
||
| <fieldset class="groupField"> | ||
| <legend>Additional info:</legend> | ||
| <label for="comments" class="form-field"> | ||
| Comments: | ||
|
Sadeni-09 marked this conversation as resolved.
Outdated
|
||
| <textarea | ||
| class="comment" | ||
| name="comments" | ||
| minlength="50" | ||
| maxlength="300" | ||
| ></textarea> | ||
| </label> | ||
|
|
||
| <label for="reccomend"> | ||
| 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> | ||
|
Sadeni-09 marked this conversation as resolved.
|
||
| </body> | ||
|
|
||
| </html> | ||
| 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; | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.