-
-
Notifications
You must be signed in to change notification settings - Fork 502
London | 26-ITP-May | Jorvan White | Sprint 1 | Form-Controls #1265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
a11a51e
64a6300
4fea05a
f5922f6
61ea410
2918f50
fc72ea8
b163df1
ea8f171
c285463
a4c76c0
1149e07
7af0c23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <style> | ||
| body { | ||
| font-family: Helvetica; | ||
| font-size: 30px | ||
| } | ||
| form { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 10px; | ||
| } | ||
| input, select { | ||
| font-size: 20px; | ||
| } | ||
| button { | ||
| font-size: 20px; | ||
| width: 100px; | ||
| } | ||
| </style> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How can you ensure clear separation of styling and html elements?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have now added a separate style.css file and removed the style tags from the index.html |
||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Form</title> | ||
| <body> | ||
| <H1>T-Shirts</H1> | ||
| <form> | ||
| <div> | ||
| <label>Name</label> | ||
| <input> | ||
| </div> | ||
| <div> | ||
| <label>Email</label> | ||
| <input> | ||
| </div> | ||
| <div> | ||
| <label>Size | ||
| <select> | ||
| <option value="xsmall">XS</option> | ||
| <option value="small">S</option> | ||
| <option value="medium">M</option> | ||
| <option value="large">L</option> | ||
| <option value="xlarge">XL</option> | ||
| <option value="xxlarge">XXL</option> | ||
| </select> | ||
| </label> | ||
| </div> | ||
| <div> | ||
| <label>Colour | ||
| <select> | ||
| <option value="yellow">Yellow</option> | ||
| <option value="black">Black</option> | ||
| <option value="pink">Pink</option> | ||
| </select> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What are the requirements of the form inputs? |
||
| </label> | ||
| </div> | ||
| <button>Submit</button> | ||
| </form> | ||
| </body> | ||
| </html> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you create a new file and not use the index.html?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, I have resolved the issues and removed the new file and updated the index.html file