diff --git a/.linthtmlrc.json b/.linthtmlrc.json index 0f2047a7..774726eb 100644 --- a/.linthtmlrc.json +++ b/.linthtmlrc.json @@ -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 } diff --git a/readme.md b/readme.md index ed4805f1..3ce5f4e9 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,7 @@ # HTML form Replace `` with your Github username and copy the links to Pull Request description: -- [DEMO LINK](https://.github.io/layout_html-form/) -- [TEST REPORT LINK](https://.github.io/layout_html-form/report/html_report/) +- [DEMO LINK](https://TheOldDream.github.io/layout_html-form/) +- [TEST REPORT LINK](https://TheOldDream.github.io/layout_html-form/report/html_report/) > Follow [this instructions](https://mate-academy.github.io/layout_task-guideline/#how-to-solve-the-layout-tasks-on-github) ___ @@ -40,7 +40,7 @@ Create HTML page with form. On form submit send form data to `https://mate-acade - Age should be at least `1` and at max `100` with a default value of `12` - The email field should have placeholder value: `email@example.com`. - Text fields should have `autocomplete="off"`. -- `Submit` button should have a `type="submit"` +- `Submit` button should have a `type="submit"` - Vertical distance between inputs should be `10px` - Vertical distance between groups should be `20px` - Any other styles should be browser default diff --git a/src/index.html b/src/index.html index 3348db1c..d1ed3267 100644 --- a/src/index.html +++ b/src/index.html @@ -11,7 +11,190 @@ -

HTML Form

+
+
+ Personal information + + + + + + + + + +
+ + +
+ Registration + + + +
+ +
+ An interesting fact about you! + Do you love cats? + + + + + + + + + + + +
+ +
+ Additional info: + + + +
+ + +
diff --git a/src/style.css b/src/style.css index c4301db2..01c1e486 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,49 @@ /* styles go here */ +.form_field { + display: block; + margin-bottom: 10px; +} + +.personalInformation { + margin-top: 15px; + margin-bottom: 15px; +} + +.registration { + margin-top: 20px; + margin-bottom: 15px; +} + +.aifay { + margin-top: 20px; + margin-bottom: 15px; +} + +.additionalInformation { + margin-top: 20px; + margin-bottom: 15px; +} + +.firstSection { + margin-top: 0; +} + +.fourthSection { + margin-bottom: 0; +} + +.firstInput { + margin-top: 0; +} + +.lastInput { + margin-bottom: 0; +} + +.eighthInput-1 { + display: inline-block; +} + +.eighthInput-2 { + display: inline-block; +}