I made this code using freecodecamp. But when I saved it as an html file, along with its css style, the code wont work.
Can someone help me fix this?
HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<link href="vedetian.css" rel="stylesheets" />
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, inital-scale=1.0"/>
<title>Survey Form</title>
</head>
<body>
<h1 id="title">Vedetian Survey Form</h1>
<p id="description"><em>Let us know on how we can improve our service</em></p>
<div class="container">
<form id="survey-form">
<fieldset>
<label for="name" id="name-label">Name:
<input id="name" type="text" required placeholder="Juan Dela Cruz">
</label>
<label for="email" id="email-label">Email Address: <input id="email" type="email" required placeholder="juandc@gmail.com">
</label>
<label for="number" id="number-label">Age(in years): <input id="number" type="number" min="13" max="65" placeholder="18">
</label>
<label>Sex</label>
<select id="dropdown">
<option value="0">--</option>
<option value="1">Male</option>
<option value="2">Female</option>
</select>
</fieldset>
<fieldset> <legend>Where have you heard us from?
</legend>
<label for="friend"><input type="radio" class="inline" name="heard" checked value="friend" id="friend">Friend</label>
<label for="fb ads"><input type="radio" class="inline" name="heard" value="Facebook ads" id="fb ads">Facebook Ads</label>
</fieldset>
<fieldset><label>What product is/are your favorite?(Select all that apply)</label> <label><input type="checkbox" class="inline" value="puto-cheese"> Puto Cheese</label>
<label><input type="checkbox" class="inline" value="kutsinta"> Kutsinta</label> <label><input type="checkbox" class="inline" value="puto-flan"> Puto Flan</label>
<label><input type="checkbox" class="inline" value="sapin"> Sapin-sapin</label></fieldset>
<fieldset>
<label>What can you say about our products?</label>
<textarea placeholder="It tastes good and I can't wait to order again..."></textarea>
<fieldset>
<input type="submit" value="Submit" id="submit">
</div>
</form>
<footer>Visit our <a href="https://www.facebook.com/vdnhomemade">Facebook Page</a></footer>
</body>
</html>
CSS CODE
body {
background-color: pink;
font-family: Calibri;
}
.container {
width: 80%;background-color: #fea3aa;
margin-left: auto;
margin-right: auto;
padding: 20px;
max-width: 500px;
font-family: Arial;
}
footer {
text-align: center;
}
label {
display: block;
padding: 2 0;
}
input, select {
display: block;
width: 100%
}
fieldset {
border: none;
margin: 0.5em 0;
}
.inline {
width: unset;
display: inline-block
}
h1, p {
text-align: center;
}
input, textarea, #number, #dropdown { background-color: #f9b7ff
}
textarea {
width: 100%;
height: 15%
}
input[type="submit"] {
border-color: #ffffff;
}
a {
color: blue;
}
a:hover {
color: #C25A7C;
}
a:active {
color: white;
}