Survey form project step 4

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
<head>
  <h1 id="title">This is my temporary title until i can come up with a better one</h1>
  <!--Add in a better title than that-->
   
<p id ="description" >This is my temporary description until I can think of something better than this shit</p>
<!--Make a better description-->
<form id="survey-form"></form>
<input id="name"  type="text"></input>
/* file: styles.css */

  **Your browser information:**

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

Challenge: Build a Survey Form

Link to the challenge:

  1. Inside the form element, you are required to enter your name in an input field that has an id of name and a type of text
    The error popping up states that " Your #name should require input"
    Ive been stuck on the step for the past day and cannot figure out what that means. Any help would be appreciated.

Couple things here. First an <input> is a self closing tag so you don’t need </input>. Second remember that to make an <input> “required” you need to give it the required attribute:

<input type="text" required>

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