Survey Form - Build a Survey Form

Tell us what’s happening:

Why is only the number placeholder coming up as an error?

Failed: Your #number should have a placeholder attribute and value.

Your code so far

WARNING

!DOCTYPE html>
<html lang="en" ><link rel="stylesheet" href="styles.css"></link>
  <head>
    <h1 id="title">Backyard Bird Survey</h1>
    <p id="description">What birds do you see everyday in your backyard?</p>
    </head>
    <body>
      <form id="survey-form">
        <fieldset>
          <label id="name-label">Name: <input id="name" type="text" placeholder="John Smith"required/></label>
          <label id="email-label">Email: <input id="email" type="email" placeholder="johnsmith@email.com" required/></label>
          <label id="number-label">Age: <input id="age" type="number" placeholder="35" min="13" max="100"  required/></label>

Your browser information:

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

Challenge Information:

Survey Form - Build a Survey Form

The first test that I am seeing as not passing is:

“You should have an input element with an id of number.”

I would fix this first.

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