The basic code for Multiline text box as follows
<textarea name="text">
</textarea>
As with any form
element, we must specify a name (in this case text). You may have
noticed that, unlike the standard text box and button, this form element
has a closing tag. This is because, as well as allowing the user to
enter more text than other elements, it is also designed to allow the
webmaster to set more initial text. Anything between the closingand
opening tags will be placed inside the textbox and, unlike with standard
HTML, new lines taken in your code between these tags will be shown as
new lines on the page.
We can create a multiline textbox as follows.
We can create a multiline textbox as follows.
And the HTML code might be like this
No comments:
Post a Comment