From 8980442b984b6c9483d7f304f2811b5d57083796 Mon Sep 17 00:00:00 2001 From: Kyrylo Manko Date: Wed, 26 Apr 2023 16:03:03 +0200 Subject: [PATCH 1/3] Added task solution --- readme.md | 6 +-- src/index.html | 143 ++++++++++++++++++++++++++++++++++++++++++++++++- src/style.css | 7 +++ 3 files changed, 152 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index ed4805f1..01051f6c 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://kyrylomanko.github.io/layout_html-form/) +- [TEST REPORT LINK](https://kyrylomanko.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..2f91702b 100644 --- a/src/index.html +++ b/src/index.html @@ -11,7 +11,148 @@ -

HTML Form

+
+
+ Personal information + +
+ + +
+ + +
+ + +
+ + + + +
+ +
+ Registration + +
+ + + + +
+ +
+ An interesting fact about you! +
+ +
+ +
+ + +
+ +
+ + +
+ + + +
+ +
+ Additional info: +
+ + +
+ +
+ + +
+ +
+ + + +
diff --git a/src/style.css b/src/style.css index c4301db2..22f30863 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,8 @@ /* styles go here */ +.distance { + margin-bottom: 10px; +} + +fieldset { + margin-bottom: 20px; +} From d9845a82e4139892ffd99fca36608539faf499db Mon Sep 17 00:00:00 2001 From: Kyrylo Manko Date: Thu, 27 Apr 2023 13:54:18 +0200 Subject: [PATCH 2/3] Changes made --- src/index.html | 235 ++++++++++++++++++++++++++----------------------- src/style.css | 8 +- 2 files changed, 132 insertions(+), 111 deletions(-) diff --git a/src/index.html b/src/index.html index 2f91702b..b34fae54 100644 --- a/src/index.html +++ b/src/index.html @@ -12,137 +12,154 @@
-
+
Personal information - -
- - -
- - -
- - -
- - - - + + + + +
-
+
Registration - -
- - - - + +
-
+
An interesting fact about you! -
-
Additional info: -
- - +
+
- - +
diff --git a/src/style.css b/src/style.css index 22f30863..067a0295 100644 --- a/src/style.css +++ b/src/style.css @@ -1,8 +1,12 @@ /* styles go here */ -.distance { +.form-field { margin-bottom: 10px; } -fieldset { +.form { + display: block; +} + +.fieldset { margin-bottom: 20px; } From c69f970db2cdfc23554f0ad197792d2e1fe99835 Mon Sep 17 00:00:00 2001 From: Kyrylo Manko Date: Thu, 27 Apr 2023 17:06:24 +0200 Subject: [PATCH 3/3] Required attributes added --- src/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.html b/src/index.html index b34fae54..55bb2bd8 100644 --- a/src/index.html +++ b/src/index.html @@ -75,14 +75,18 @@ id="email" name="email" placeholder="email@example.com" + required >