Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions Form-Controls/Forms.html
Copy link
Copy Markdown

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?

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>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can you ensure clear separation of styling and html elements?

<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>
Comment on lines +30 to +54
Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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>
Loading