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

General Discussion

Botched Textarea!

I am working informs and when i added a textarea, for some reason the area shows the closing form, body and html tags inside the textarea and the submit button disappears:

<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8">
    <title>My Page</title>
</head>

<body>
  <form action="#" method="POST" name="my_form">
    <input type="text" name="username"><br>
    <input type="password" name="password"><br>
    <input type="radio" name="gender" value="Male">Male<br>
    <input type="radio" name="gender" value="Female">Female<br>
    <input type="checkbox" name="foods" value="Apples">Apples<br>
    <input type="checkbox" name="foods" value="Bananas">Bananas<br>
    <input type="checkbox" name="foods" value="Grapes">Grapes<br>

    <textarea name="essay" rows="10" cols="30"></textarea>

    <input type="submit" value="Onwards!">

  </form>  
</body>
</html>

any help would be cool!

4 Answers

would you happen to be writing this in Workspaces?

No, i am using Komodo Edit.

Thats unusual! the markup you have above works fine when copied into a new html page. Have you tried copying it into another text editor to see if it renders correctly.

It would only usually display the closing tags if the textarea's opening/closing tags were malformed.

Bob

Wow, for some reason when i tried it this time it worked, don't know what happened - the code is the same, sorry if i wasted anyone's time.