-
Notifications
You must be signed in to change notification settings - Fork 609
Develop #795
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?
Develop #795
Changes from 9 commits
80845d9
f9d7dcc
2ab53c4
824f62c
2687a6b
f1ece48
19ec1cd
236588a
91ab245
b596522
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,211 @@ | |||||||||||||||||||||||||||
| <link rel="stylesheet" href="./style.css"> | ||||||||||||||||||||||||||||
| </head> | ||||||||||||||||||||||||||||
| <body> | ||||||||||||||||||||||||||||
| <h1>HTML Form</h1> | ||||||||||||||||||||||||||||
| <form action="https://mate-academy-form-lesson.herokuapp.com/create-application"> | ||||||||||||||||||||||||||||
| <fieldset class="fieldset"> | ||||||||||||||||||||||||||||
| <legend>Personal information</legend> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <div class="form-field"> | ||||||||||||||||||||||||||||
| <label for="surname">Surnmae: </label> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||
| type="text" | ||||||||||||||||||||||||||||
| name="surname" | ||||||||||||||||||||||||||||
| id="surname" | ||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <div class="form-field"> | ||||||||||||||||||||||||||||
| <label for="name">Name: </label> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||
| type="text" | ||||||||||||||||||||||||||||
| name="name" | ||||||||||||||||||||||||||||
| id="name" | ||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <div class="form-field"> | ||||||||||||||||||||||||||||
| <label for="age">How old are You?</label> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||
| type="number" | ||||||||||||||||||||||||||||
| name="age" | ||||||||||||||||||||||||||||
| id="age" | ||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||
| value="12" | ||||||||||||||||||||||||||||
| min="1" | ||||||||||||||||||||||||||||
| max="100" | ||||||||||||||||||||||||||||
| required | ||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <div class="form-field"> | ||||||||||||||||||||||||||||
| <label for="date-birth">Full date of birth: </label> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||
| type="date" | ||||||||||||||||||||||||||||
| name="dateBirth" | ||||||||||||||||||||||||||||
| id="date-birth" | ||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <div> | ||||||||||||||||||||||||||||
| <label for="agreement">I accept the term of the agreement </label> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||
| type="checkbox" | ||||||||||||||||||||||||||||
| name="agreement" | ||||||||||||||||||||||||||||
| id="agreement" | ||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||
| required | ||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||
| </fieldset> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <fieldset class="fieldset"> | ||||||||||||||||||||||||||||
| <legend>Registration</legend> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <div class="form-field"> | ||||||||||||||||||||||||||||
| <label for="email">E-mail: </label> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||
| type="email" | ||||||||||||||||||||||||||||
| name="email" | ||||||||||||||||||||||||||||
| id="email" | ||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||
| placeholder="email@example.com" | ||||||||||||||||||||||||||||
| required | ||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <div> | ||||||||||||||||||||||||||||
| <label for="password">Password: </label> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||
| type="password" | ||||||||||||||||||||||||||||
| name="password" | ||||||||||||||||||||||||||||
| id="password" | ||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||
| required | ||||||||||||||||||||||||||||
| minlength="5" | ||||||||||||||||||||||||||||
| maxlength="10" | ||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||
| </fieldset> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <fieldset class="fieldset"> | ||||||||||||||||||||||||||||
| <legend>An interesting fact about you!</legend> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <div class="form-field"> | ||||||||||||||||||||||||||||
| <label for="yes">Do you love cats?</label> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||
| type="radio" | ||||||||||||||||||||||||||||
| name="lovesCats" | ||||||||||||||||||||||||||||
| id="yes" | ||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||
| value="Yes" | ||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <label for="yes">Yes</label> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| <input type="radio" | ||||||||||||||||||||||||||||
| name="lovesCats" | ||||||||||||||||||||||||||||
| id="no" | ||||||||||||||||||||||||||||
| autocomplete="off" | ||||||||||||||||||||||||||||
| value="No" | ||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
| <input type="radio" | |
| name="lovesCats" | |
| id="no" | |
| autocomplete="off" | |
| value="No" | |
| > | |
| <input | |
| type="radio" | |
| name="lovesCats" | |
| id="no" | |
| autocomplete="off" | |
| value="No" | |
| > |
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.
fix typo
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.
Should be
| name="colour" | |
| name="color" |
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.
Remove line between parent and child tag
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.
Remove space
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.
remove space
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| /* styles go here */ | ||
|
|
||
| .form-field { | ||
| margin-bottom: 10px; | ||
| } | ||
|
|
||
| .fieldset { | ||
| margin-bottom: 20px; | ||
| } |
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.
In my opinion best way is to add form-field class to all divs and in css you can remove margin-bottom in :last-child selector. This is more consistant. It is a separation of duites, that styles will determin how the markup looks.