Assessment wanted for Styling basics 1 skill test"
styling basics 1
by shivani0005
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Styling basics: Task 1</title>
</head>
<body>
<form>
<h2>Edit your preferences</h2>
<ul>
<li>
<label for="e-mail">Email:</label>
<input type="email" id="e-mail" name="e-mail">
</li>
<li>
<label for="website">Website:</label>
<input type="url" id="website" name="website">
</li>
<li>
<label for="phone">Phone number:</label>
<input type="tel" id="phone" name="phone">
</li>
<li>
<label for="food">Favorite food:</label>
<select name="food" id="food">
<option>Salad</option>
<option>Curry</option>
<option>Pizza</option>
<option>Fajitas</option>
</select>
</li>
<li>
<button id="button">Update preferences</button>
</li>
</ul>
</form>
</body>
</html>
CSS
* {
box-sizing: border-box;
}
body {
background-color: #fff;
color: #333;
font: 1em / 1.4 Helvetica Neue, Helvetica, Arial, sans-serif;
padding: 1em;
margin: 0;
width: 500px;
}
button,
input,
select,
textarea {
font-family: inherit;
font-size: 100%;
}
input,
label,
select,
button{
width: 150px;
padding: 0;
margin: 0;
}
ul{
list-style: none;
padding: 0;
margin: 0;
}
form li+li{
margin-top: 1em;
}
label{
display: inline-block;
width: 150px;
text-align: right;
}
.button{
padding-left: 150px;
}
button{
margin-left: 7em;
}