Survey Form - Build a Survey Form

Tell us what’s happening:
Hello, I tried to run the test for my code but it doesn’t want to work. I checked and over-checked my code and I cannot for the life of me find any syntax errors. Could you please help me? Thank you so much, I am new here. :relaxed:

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Survey Form</title>
    <link rel="stylesheet" href="styles.css">
  </head>

  <body>
    <h1 id="title">Monthly Lunchtime Favourites</h1>
    <p id="description">Help us learn what this past month's monday comfort meal was!</p>
    <form id="survey-form">
      <label for="name-label">Name<input id="name-label" name="full-name" type="text" placeholder="Please enter your full legal name." required/></label> 
      <label for="email-label">Email <input id="email-label" name="email" type="email" placeholder="Please enter your email address." required/></label>
      <label for="number-label">Age <a>(optional)</a> <input id="number-label" name="age" type="number" min="10" max="99" placeholder="Please enter your age." /></label>  
      <label for="department">Your department
        <select id="department" type="dropdown">
          <option value="">Please select your department.</option>
          <option value="1">Human Resources</option>
          <option value="2">Software Development</option>
          <option value="3">Finances</option>
        </select>
      </label>
      <label>Position: </label>
      <label for="junior"><input id="junior" type="radio" name="position" class="inline" /><a1>Junior</a1></label>
      <label for="intermediate"><input id="intermediate" type="radio" name="position" class="inline" /><a1>Intermediate</a1></label>
      <label for="senior"><input id="senior" type="radio" name="position" class="inline" /><a1>Senior</a1></label>
      <label>Monday lunch: </label>
      <label><input id="food" type="checkbox"  name="food" class="inline" required/><a1>Pizza</a1></label>
      <label for="food" name="food"><input id="food" type="checkbox"  name="food" class="inline"/><a1>Lasagna</a1></label>
      <label for="food" name="food"><input id="food" type="checkbox"  name="food" class="inline"/><a1>Salad</a1></label>
      <label for="comments">Suggestions or objections:
          <textarea id="comments" name="comments" rows="3" cols="30" placeholder="I hate your..."></textarea>
      </label>
      <input type="submit" value="Submit" />
    </from>
  </body>
</html>
/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 100px 20px 100px 20px;
  background: url(https://i.pinimg.com/originals/df/fe/c2/dffec2b6b69b0cc8bc027e6a22757a60.jpg);
  color: #f5f6f7;
  font-family: Tahoma;
  font-size: 16px;
}

h1{
  margin: 1em auto;
  text-align: center;
  color: #1b1b32;
}

p{
  font-family: Italic, serif;
  font-size: 15px;
  margin: 1em auto;
  text-align: center;
}

form {
  width: 100%;
  max-width: 800px;
  min-width: 500px;
  margin: 0 auto;
  background-color: #00000099;
  text-align: left;
  padding: 2px 9px;
  border-radius: 7px 7px 7px 7px;
}

label {
  display: block;
  margin: 0 auto;
  padding: 10px;
  font-size: 30px;
}

input,
select {
  margin: 0 auto;
  width: 100%;
  min-height: 3em;
  font-size: 12px;
}

.inline {
  width: unset;
  margin: 0 0.5em 0 0;
  vertical-align: middle;
}

input[type="text"],input[type="number"],input[type="email"] {
  padding: 1px 6px;
  border-radius: 7px 7px 7px 7px;
  font-size: 12px;
}

textarea{
  padding: 1px 6px;
  margin: 0 auto;
  width: 100%;
  min-height: 10em;
  border-radius: 7px 7px 7px 7px;
  font-size: 12px;
}
a{
  color: #dfdfe2;
  margin: 0 auto;
  font-size: 15px;
}

a1{
  color: #ffffff;
  margin: 0 auto;
  font-size: 20px;
}

input[type="submit"] {
  display: block;
  width: 70%;
  margin: 0 auto;
  height: 2em;
  font-size: 1.1rem;
  background-color: #F7DE8B;
  border-color: #F7DE8B;
  min-width: 300px;
  border-radius: 7px 7px 7px 7px;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

not sure what an a1 tag does.
Can you explain it?

Oh, I see. I’m a beginner in coding as a whole and I thought I was being smart, but yes it does not exist. Thank you!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.