/    Sign up×
Community /Pin to ProfileBookmark

Inserting a line break in TEXTAREA in a FORM

I have this code in my FORM html…

<textarea cols=63 rows=10 name=sender_message>[ I would also like to attend the CD-Announcement Party. ]</textarea>

So, that text starts right at the beginning of the textbox on the webpage. How can I shove it down a couple of lines? So there’s blank space between the start of the textbox and that message I’m inserting.

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryJul 31.2003 — Textareas work like preformatted text, taking the spacing/line breaks from the HTML, so you can do this:

<textarea cols=63 rows=10 name=sender_message>


[ I would also like to attend the CD-Announcement Party. ]

</textarea>

Adam
Copy linkTweet thisAlerts:
@Duke_WillauthorJul 31.2003 — Cool, Adam, got it! It worked.
×

Success!

Help @Duke_Will spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...