Skip to content
Open
Show file tree
Hide file tree
Changes from 7 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
16 changes: 16 additions & 0 deletions Form-Controls/formexercise.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
body{
line-height:2;
font-size:18px;
font-family:Arial, Helvetica,sans-serif;
border: 1px solid black;
text-align:center;
}
button{
width:100px;
height:40px;
background-color:white;
text-align:center;
color:black;
font-size:20px;

}
50 changes: 38 additions & 12 deletions Form-Controls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,48 @@
<title>My form exercise</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel ="stylesheet" href="formexercise.css">
</head>
<body>
<header>
<h1>Product Pick</h1>
</header>
<main>
<form>
<!-- write your html here-->
<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
</form>
</main>
<footer>
<!-- change to your name-->
<p>By HOMEWORK SOLUTION</p>
</footer>
<main>
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name"
pattern=".*\S.*\S*" required title ="Please enter full name"/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nearly. Put yours and the README's side by side and look at the last three characters of each. What does * mean after \S, and how many non-space characters does that make the minimum?

<label for="email">Email:</label>
<input type="email" id="email" name="email" required/>
<br>
<div>
<label for="color">Choose a color:</label>
<select name="color" id="color" required>
<option value="">Choose Color</option>
<option value="green">Green</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
</select>
</div>
<div>
<label for="size">Choose a size:</label>
<select name="size" id="size" required>
<option value="">Choose Size</option>
<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>
</div>
<div>
<button type="submit"> Submit</button>
</div>
</form>
</main>
<footer>
<p>Maharit Belai</p>
</footer>
</body>
</html>
Loading