Survey Form - Build a Survey Form

Trying to figure out why the text for my h3 element isn’t appearing…
I think that it is my style sheet but I’m not seeing it.

Thanks for helping !
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>AI Interaction / Opinion Questionnaire</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <h1 id="title">AI Interaction / Opinion Questionnaire</h1>
    <p id="description">Tell us what you think about AI</>
    <form id="survey-form">
    <fieldset>
    <label for="name" id="name-label">Your name <input id="name" type="text" placeholder="Jane Doe" required /></label>
    <label for="email" id="email-label">Your email address <input id="email" type="email" placeholder="Chatgbt4@gmail.com" required /></label>
    <label for="age" id="number-label">Your age <input type="number" min="13" max="100" id="number" placeholder="27" required /></label>
    <h2>How often do you interact with AI ?</h2>
     <select id="dropdown" name="dropdown">
       <option value="">(select one)</option>
       <option value="1">Never</option>
       <option value="2">1 to 3 times a month</option>
       <option value="3">4 to 10 times a month</option>
       <option value="4">5 to 20 timea a month</option>
       <option value="5">20 plus times a month</option>
       </fieldset>
    <fieldset>
  <h3>How do you use AI ?</h3>
  <label for="buisness-work"><input id="buisness-work" type="radio" value="buisness-work" name="how-use" class="inline" />Buisness/Work </lable>
    <lable for="fun-curiosity"><input id="fun-curiosity" type="radio" value="fun-curiosity" name="how-use" class="inline" />Fun/Curiosity </label>
    </fieldset>
/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
  font-family: Tahoma;
  font-size: 16px;
}

h1, p {
  margin: 1em auto;
  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: 3px solid #3b3b4f;
}

fieldset:last-of-type {
  border-bottom: none;
}

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

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

input, textarea {
  background-color: #0a0a23;
  border: 1px solid #0a0a23;
  color: #ffffff;
}

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

input[type="submit"] {
  display: block;
  width: 60%;
  margin: 1em auto;
  height: 2em;
  font-size: 1.1rem;
  background-color: #3b3b4f;
  border-color: white;
  min-width: 300px;
}

input[type="file"] {
  padding: 1px 2px;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

You never close the select element </select>

1 Like

Thanks you ! I appreciate it.

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