diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 74b591ffc..7713f4d25 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -6,6 +6,7 @@ My form exercise +
@@ -13,15 +14,83 @@

Product Pick

- - +
+ + + Must be at least 2 characters long +
+ +
+ + + Must be at least 2 characters long +
+ +
+ + + Must be a valid email address +
+ +
+ + + + Must be at least 8 characters long and include at least one uppercase letter, + one lowercase letter, + one number, and one special character +
+ +
+ Shirt Color + + +
+ +
+ + +
+ + +
+ +
+ +
diff --git a/Form-Controls/style.css b/Form-Controls/style.css new file mode 100644 index 000000000..ed5cfc994 --- /dev/null +++ b/Form-Controls/style.css @@ -0,0 +1,59 @@ +body { + font-family: system-ui, sans-serif; + padding: 1rem; + line-height: 1.5; +} + +form { + max-width: 500px; + margin: auto; +} + +fieldset { + border: none; + padding: 0; + margin: 1.5rem; +} + +label { + display: block; + margin-bottom: 0.5rem; + font-weight: 600; +} + +input, select, button { + width: 100%; + padding: 12px; + font-size: 1rem; + min-height: 48px; + box-sizing: border-box; +} + +small { + display: block; + margin-top: 0.25rem; + color: #666; +} + +button { + padding: 0.75rem 1.5rem; + font-size: 1rem; + background-color: #007BFF; + color: white; + border: none; + cursor: pointer; +} + +button:hover { + background-color: #0056b3; +} + +header, footer { + text-align: center; + margin-bottom: 2rem; +} + +footer p { + font-size: 0.875rem; + color: #666; +}