JavaScript is not enabled in your browser. These examples will not work without JavaScript.

Forms: The Textarea Field

This form has two input fields (type="text"), which are single-line only, and one textarea field (the one that allows multiple lines to be typed). Compare the HTML used for each field. This combination is very common in Web forms, so you should learn how to code and style it.

The Submit button will write text onto the page at the bottom, below the form. Here we have an added feature: The page will scroll to that position (jQuery again).

Note that the Reset button resets all form elements, but it does not reload the page.

Return to the index.