Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Forms HTML Mastery

Ammar Siddiqui
Ammar Siddiqui
7,172 Points

<input type="text" value="Hello World">

I have tried "Value" Attribute and the code seems quite Right, still it keeps saying "Try setting the value Attribute"

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>HTML Mastery Challenge</title>
  </head>
  <body>
    <div>
    <h1>HTML Mastery Challenge</h1>
      <h2>Shopping List</h2>
      <p> A little quick <strong>Brown Fox</strong> jumps over the lazy dog </p>
      <ol>
        <li> Item 1 </li>
        <li> Item 2 </li>
        <li> Item 3 </li>
      </ol>
      <form action="#" method="POST" name="my-form">
        <input type="text" name="Username">
        <input type="text" value="Hello World">

    </div>

    <!-- Write your code below -->


  </body>
</html>

3 Answers

Manoj H L
Manoj H L
3,315 Points

try this

<form action="#" method="POST" name="my-form">
  <input type="text" name="Username" value="Hello World">
</form>

the input elements should have name attributes for identity along with the value attribute.

Jesse Zelaya
Jesse Zelaya
13,598 Points

Seems like your not closing the form tag. Try this.

      <form action="#" method="POST" name="my-form">
        <input type="text" name="Username">
        <input type="text" value="Hello World">
      </form>
Ammar Siddiqui
Ammar Siddiqui
7,172 Points

Thank You Guys for your help but both methods are not working. Still getting the same error!