From 2a3f3c7f2e1ce4c70349f863d150ead286d6e2fe Mon Sep 17 00:00:00 2001 From: Taras Sivokhin Date: Mon, 10 Apr 2023 11:29:05 +0200 Subject: [PATCH 1/9] solution --- .linthtmlrc.json | 48 ++++++++++++++++++++++++++- src/index.html | 84 ++++++++++++++++++++++++++++++++++++++++++++++++ src/style.css | 20 ++++++++++++ 3 files changed, 151 insertions(+), 1 deletion(-) diff --git a/.linthtmlrc.json b/.linthtmlrc.json index 0f2047a73..774726ebe 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/src/index.html b/src/index.html index 3348db1c5..eef38f059 100644 --- a/src/index.html +++ b/src/index.html @@ -13,5 +13,89 @@

HTML Form

+
+ + + +
+ + +
+
+ +
+
+ Choose your sex: + + +
+ + +
+ + + + + diff --git a/src/style.css b/src/style.css index c4301db28..c67a7bc00 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,21 @@ /* styles go here */ +.form-field { + display: block; + margin: 10px 0; +} + +.field::placeholder { + color: green; +} + +.field:invalid { + border: 1px solid red; +} + +.field:focus { + background-color: azure; +} + +.field:checked ~ .form__label { + color: grey; +} From 09af41e935d8a343b8c785a614c5f8d9b3926126 Mon Sep 17 00:00:00 2001 From: Taras Sivokhin Date: Sat, 15 Apr 2023 15:43:14 +0200 Subject: [PATCH 2/9] solution --- readme.md | 5 +- src/index.html | 196 +++++++++++++++++++++++++++++++++---------------- 2 files changed, 134 insertions(+), 67 deletions(-) diff --git a/readme.md b/readme.md index ed4805f1e..21318d4c6 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,6 @@ # 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/) +n > Follow [this instructions](https://mate-academy.github.io/layout_task-guideline/#how-to-solve-the-layout-tasks-on-github) ___ @@ -40,7 +39,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 eef38f059..300fa3d4f 100644 --- a/src/index.html +++ b/src/index.html @@ -11,86 +11,154 @@ -

HTML Form

- - - -
- -
-
-
-
- Choose your sex: -
- - + +
+ What are your favorite brand of cars? + +
+ + +
+ Additional info: + + +
+
From b1b443ab95b0ed82b83b60f6fb5c39e2652b79fd Mon Sep 17 00:00:00 2001 From: Taras Sivokhin Date: Sat, 22 Apr 2023 09:23:47 +0200 Subject: [PATCH 3/9] solution --- readme.md | 3 ++- src/index.html | 15 +++++++++------ src/style.css | 4 ---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/readme.md b/readme.md index 21318d4c6..929841292 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,7 @@ # HTML form Replace `` with your Github username and copy the links to Pull Request description: -n +- [DEMO LINK](https://Taras0506.github.io/layout_html-form/) +- [TEST REPORT LINK](https://Taras0506.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) ___ diff --git a/src/index.html b/src/index.html index 300fa3d4f..b20734865 100644 --- a/src/index.html +++ b/src/index.html @@ -6,7 +6,10 @@ name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" > - + HTML Form @@ -14,13 +17,13 @@
Personal information diff --git a/src/style.css b/src/style.css index c67a7bc00..e87d8f131 100644 --- a/src/style.css +++ b/src/style.css @@ -4,10 +4,6 @@ margin: 10px 0; } -.field::placeholder { - color: green; -} - .field:invalid { border: 1px solid red; } From 0a6d9d37b18cd835dcd956d2233584f1392cb7a1 Mon Sep 17 00:00:00 2001 From: Taras Sivokhin Date: Sat, 22 Apr 2023 11:51:45 +0200 Subject: [PATCH 4/9] solution --- src/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.html b/src/index.html index b20734865..8bf0215b6 100644 --- a/src/index.html +++ b/src/index.html @@ -23,7 +23,7 @@
Personal information