FAQ: Learn HTML: Forms - Textarea element

This community-built FAQ covers the “Textarea element” exercise from the lesson “Learn HTML: Forms”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Introduction to HTML

FAQs on the exercise Textarea element

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

A post was split to a new topic: Why can’t the textarea be left blank?

6 posts were split to a new topic: Why do we need for, id, and name?

10 posts were split to a new topic: How can we make transparent text that disappears when replaced?

12 posts were split to a new topic: Why is textarea seperate from input? Is it even necessary?

4 posts were split to a new topic: What does the cols and rows attributes determine?

How do we remove the possibility to resize textarea?
I asked myself this question and found an answer, so I thought it could be interesting to other people.

Here is the answer : Add style=“resize:none” as an attribute to the element.

3 Likes

Thank you so much for this! Good extra info!

Thanks for the extra info. Its pretty much interesting.

How could the default text in a textarea jump one row down like pressing enter.
So that the person typing begins to type in the second row.

For example:
Hello,
[Here begins the cursor for typing]

br just adds a “br” to the text