-
Notifications
You must be signed in to change notification settings - Fork 609
added task solution #790
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?
added task solution #790
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 |
|---|---|---|
| @@ -1,3 +1,49 @@ | ||
| { | ||
| "extends": "@mate-academy/linthtml-config" | ||
| "attr-bans": [ | ||
| "align", | ||
| "background", | ||
| "bgcolor", | ||
| "border", | ||
| "frameborder", | ||
| "style" | ||
| ], | ||
| "attr-name-ignore-regex": "viewBox", | ||
| "attr-no-dup": true, | ||
| "attr-quote-style": "double", | ||
| "attr-req-value": true, | ||
| "class-no-dup": true, | ||
| "doctype-first": true, | ||
| "doctype-html5": true, | ||
| "fig-req-figcaption": true, | ||
| "head-req-title": true, | ||
| "html-req-lang": true, | ||
| "id-class-style": false, | ||
| "id-no-dup": true, | ||
| "img-req-src": true, | ||
| "img-req-alt": "allownull", | ||
| "indent-width": 2, | ||
| "indent-style": "spaces", | ||
| "indent-width-cont": true, | ||
| "input-radio-req-name": true, | ||
| "spec-char-escape": true, | ||
| "tag-bans": [ | ||
| "b", | ||
| "i", | ||
| "u", | ||
| "center", | ||
| "style", | ||
| "marquee", | ||
| "font", | ||
| "s" | ||
| ], | ||
| "tag-name-lowercase": true, | ||
| "tag-name-match": true, | ||
| "tag-self-close": "never", | ||
| "tag-close": true, | ||
| "text-ignore-regex": "&", | ||
| "title-no-dup": true, | ||
| "line-end-style": "lf", | ||
| "attr-new-line": 2, | ||
| "attr-name-style": "dash", | ||
| "attr-no-unsafe-char": true | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,7 +11,176 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <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="container"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+18
to
+19
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. Don't add spaces between parent and child components |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <legend>Personal information</legend> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="surname">Surname:</label> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class="form_group" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type="text" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id="surname" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name="surname" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <br> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="name">Name:</label> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class="form_group" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type="text" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id="name" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name="name" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <br> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="age">How old are You?</label> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class="form_group" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type="number" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id="age" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name="age" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| value="12" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| min="1" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max="100" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <br> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="date">Full date of birth:</label> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class="form_group" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type="date" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id="date" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name="date" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <br> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="box">I accept the term of the agreement</label> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type="checkbox" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id="box" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name="box" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <br> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </fieldset> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <fieldset class="container"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <legend>Registration</legend> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="adress">E-mail:</label> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type="email" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id="adress" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class="form_group" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name="adress" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| placeholder="email@example.com" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <br> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="secret">Password:</label> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type="password" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id="secret" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name="secret" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| required | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| minlength="8" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| maxlength="15" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </fieldset> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <fieldset class="container"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <legend>An interesting fact about you!</legend> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div class="form_group"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="cat">Do you love cats?</label> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="yes">Yes</label> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id="yes" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type="radio" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name="pet" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| value="yes" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="no">No</label> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id="no" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type="radio" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name="pet" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| value="No" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <label for="yes">Yes</label> | |
| <input | |
| id="yes" | |
| type="radio" | |
| name="pet" | |
| value="yes" | |
| > | |
| <label for="no">No</label> | |
| <input | |
| id="no" | |
| type="radio" | |
| name="pet" | |
| value="No" | |
| > | |
| <label> | |
| <input | |
| id="yes" | |
| type="radio" | |
| name="pet" | |
| value="yes" | |
| > | |
| Yes | |
| </label> | |
| <label> | |
| <input | |
| id="no" | |
| type="radio" | |
| name="pet" | |
| value="No" | |
| > | |
| No | |
| </label> |
You can wrap it into label tag to fix previous comment
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.
| <input type="range" | |
| id="review" | |
| name="rating" | |
| step="1" | |
| value="0" | |
| min="0" | |
| max="5" | |
| > | |
| <input | |
| type="range" | |
| id="review" | |
| name="rating" | |
| step="1" | |
| value="0" | |
| min="0" | |
| max="5" | |
| > |
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.
| </div> | |
| </fieldset> | |
| </div> | |
| </fieldset> |
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.
| <textarea name="write" | |
| id="comments" | |
| autocomplete="off" | |
| required | |
| ></textarea> | |
| <textarea | |
| name="write" | |
| id="comments" | |
| autocomplete="off" | |
| required | |
| ></textarea> |
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.
| <option value="answer">Yes</option> | |
| <option value="answer">No</option> | |
| <option value="yes">Yes</option> | |
| <option value="no">No</option> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,12 @@ | ||
| /* styles go here */ | ||
| .form_group { | ||
| margin-bottom: 10px; | ||
| } | ||
|
|
||
| .container { | ||
| margin-bottom: 20px; | ||
| } | ||
|
|
||
| .form-block { | ||
| display: block; | ||
| 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.