Survey Form - Build a Survey Form

Can anyone help me align the radio buttons and the check box in line with the labels?

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Survey</title>
  <link rel="stylesheet" href="styles.css"/>
</head>
</html>
<body> 
<h1 id="title">This Survey</h1>
<p id="description">Is a project</p>
<form id="survey-form">
  <fieldset>
      <label id="name-label">Enter Your First Name: <input id="name" placeholder="first name" type="text"  required />
      </label>
      <label>Enter Your Last Name: <input id ="name" type="text" placeholder="last name"  required />
      </label>
      <label id="email-label">Enter Your Email: <input id="email" type="email" placeholder="email" required />
      </label>
      <label id="number-label">Age:<input id="number" type="number" placeholder="18-99" min="18" max="99"required />
      </label/>

      <!----Dropdown---->
      <label>How did you hear about us?
        <select id="dropdown">
          <option value="">(select one)</option>
          <option value="1">freeCodeCamp News</option>
          <option value="2">freeCodeCamp YouTube Channel</option>
          <option value="3">freeCodeCamp Forum</option>
          </select>
      </label>
  </fieldset>
  
  <fieldset>

    <!----Radio Buttons---->
    <label><input type="radio" name="account-type" value="account" /> Personal Account</label>
      <label><input type="radio" name="account-type" value="account" /> Business Account</label>
      <label>
        <label>
        <input type="checkbox" name="terms" required value="accept"/> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
      </label>
</fieldset>

      <!----CheckBox---->
<fieldset>
      <input type="checkbox" name="vehicle1" value="Bike">
<label for="vehicle1"> I have a bike</label><br>
<input type="checkbox" name="vehicle2" value="Car">
<label for="vehicle2"> I have a car</label><br>
<input type="checkbox" name="vehicle3" value="Boat" checked>
<label for="vehicle3"> I have a boat</label><br><br>
  </fieldset>

  <fieldset>
  <label>Provide a bio:
        <textarea name="bio" rows="3" cols="30" placeholder="I like coding on the beach..."></textarea><br>
         <input id="submit" type="submit" value="Submit">
      </label>
  </fieldset>
</form>
</body>

/* file: styles.css */
body {
width: 100%;
height: 100vh;
margin: 0;
background-color: white;
color: black;
font-family: "Source Serif Pro";
font-size: 16px;
}


h1, p {
  text-align: center;
}

form {
width: 60vw;
max-width: 500px;
min-width: 300px;
margin: 0 auto;
padding-bottom: 2em;

}


fieldset {
border: none;
padding: 2rem 0;
border-bottom: 1px solid #3b3b4f;

}

input,
textarea,
select {
margin: 10px 0 0 0;
width: 100%;
min-height: 1.5em;

}

label {
display: block;
margin: 0.5rem 0;
}

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

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