Dreamweaver - Forms - Adding a textarea
Go to the forms tab on the Insert menu:

Click on the icon to create a new form. In Design view, the form is outlined by a dashed red line.
Once you've created a form, move your cursor inside the form area. Then click on the icon to create a new textarea. Textareas are used much like text fields, but textareas are usually used to read in larger amounts of text:
Here's the code for that example:
If you want to change the properties of the textarea, right click on it and select what you want to edit.
Selecting "Name..." pops up a window that allows you to change the name of the textarea.
Selecting "Edit Tag <textarea>..." allows you to change all of the attributes at once:
- The "Name" field allows you to change the name of the textarea.
- The "Columns" field allows you to change the width of the textarea.
- The "Rows" field allows you to change the height of the textarea.
- The "Wrap" dropdown menu has options for affecting how the lines wrap around.
- "Default" - moves words down to the next line if they won't fit at the end of the current line.
- "Off" - doesn't wrap text at all, instead, it scrolls sideways.
- "Virtual" - same as default.
- "Physical" - same as default.
- The "Disabled" checkbox makes it where the user can't type in the textarea and the textarea is greyed out.
- The "Readonly" checkbox makes it where the user can't type in the textarea. This does not grey it out.
Select "Edit Tag Code <textarea>..." if you want to edit the tag properties by hand.
Alternatively, you can change the properties of the textarea through the properties menu:
- The box under the word "TextField" on the left is the name of the textarea.
- The "Char Width" is how wide the textarea is going to be.
- The "Num Lines" is how tall the textarea is going to be.
- The "Wrap" dropdown menu has options for affecting how the lines wrap around.
- "Default" - moves words down to the next line if they won't fit at the end of the current line.
- "Off" - doesn't wrap text at all, instead, it scrolls sideways.
- "Virtual" - same as default.
- "Physical" - same as default.
- The "Single", "Multi line", and "Password" radio buttons let you make the textarea a text field, leave it as a textarea, or make it a password field (variant of text field). For more information on text fields and password fields, click here.
- The "Init Val" textarea lets you to type in what you want to have as the default text.
|
|