diff --git a/Form-Controls/README.md b/Form-Controls/README.md index 86f623d89..9ffd4556d 100644 --- a/Form-Controls/README.md +++ b/Form-Controls/README.md @@ -4,12 +4,12 @@ -- [ ] Interpret requirements and check against a list of criteria -- [ ] Write a valid form -- [ ] Test with Devtools -- [ ] Refactor using Devtools -- [ ] Use version control by committing often and pushing regularly to GitHub -- [ ] Develop the habit of writing clean, well-structured, and error-free code +- [x] Interpret requirements and check against a list of criteria +- [x] Write a valid form +- [x] Test with Devtools +- [x] Refactor using Devtools +- [x] Use version control by committing often and pushing regularly to GitHub +- [x] Develop the habit of writing clean, well-structured, and error-free code ## Task @@ -34,18 +34,18 @@ Do not write a form action for this project. Let's write out our testable criteria. Check each one off as you complete it. -- [ ] I have only used HTML and CSS. -- [ ] I have not used any JavaScript. +- [x] I have only used HTML and CSS. +- [x] I have not used any JavaScript. ### HTML -- [ ] My form is semantic HTML. -- [ ] All inputs have associated labels. -- [ ] My Lighthouse Accessibility score is 100. -- [ ] I require a valid name. -- [ ] I require a valid email. -- [ ] I require one colour from a defined set of 3 colours. -- [ ] I require one size from a defined set of 6 sizes. +- [x] My form is semantic HTML. +- [x] All inputs have associated labels. +- [x] My Lighthouse Accessibility score is 100. +- [x] I require a valid name. +- [x] I require a valid email. +- [x] I require one colour from a defined set of 3 colours. +- [x] I require one size from a defined set of 6 sizes. ### Developers must adhere to professional standards. @@ -54,10 +54,10 @@ Let's write out our testable criteria. Check each one off as you complete it. These practices reflect the level of quality expected in professional work. They ensure your code is reliable, maintainable, and presents a polished, credible experience to users. -- [ ] My HTML code has no errors or warnings when validated using https://validator.w3.org/ -- [ ] My code is consistently formatted -- [ ] My page content is free of typos and grammatical mistakes -- [ ] I commit often and push regularly to GitHub +- [x] My HTML code has no errors or warnings when validated using https://validator.w3.org/ +- [x] My code is consistently formatted +- [x] My page content is free of typos and grammatical mistakes +- [x] I commit often and push regularly to GitHub ## Resources - [MDN: Form controls](https://developer.mozilla.org/en-US/docs/Learn/Forms) diff --git a/Form-Controls/css/style.css b/Form-Controls/css/style.css new file mode 100644 index 000000000..febd7e2e6 --- /dev/null +++ b/Form-Controls/css/style.css @@ -0,0 +1,36 @@ +h1{ + font-family: 'Times New Roman', Times, serif; + font-size: 1.5rem; +} +fieldset{ + background-color: #becce2; + border: 2px solid #c0cde0; + border-style: solid; + border-radius: 0.5em; + margin: 1em auto; + padding: 1em; + width: 40em; + max-width: 800px; +} + +legend{ + color: #222; + background-color: #f6f9ff; + font-size: 90%; + padding: 1em 2em; + border: solid 1px #becce2; + border-radius: 0.3em; + + +} +fieldset > div{ + padding: 0.5em 3em; + display: grid; + grid-template-columns: 2fr 4fr; +} +input, select, button{ + border: solid 1px #becce2; + padding: 4px; + font-size: 1em; + border-radius: 0.3em; +} diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 74b591ffc..03d31986e 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -3,9 +3,10 @@
-