Can someone please explain how to use text and textarea inputs?


Clayton told me to ask this question.


input type text :

The <input> tag specifies an input field where the user can enter data.
<input> elements are used within a <form> element to declare input controls that allow users to input data.
An input field can vary in many ways, depending on the type attribute.

Textarea :

The <textarea> tag defines a multi-line text input control.
A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).
The size of a text area can be specified by the cols and rows attributes, or even better; through CSS’ height and width properties.


Here’s an example of input:

<form action="/action_page.php">
First name: <input type="text" name="FirstName" value="Mickey"><br>
Last name: <input type="text" name="LastName" value="Mouse"><br>
<input type="submit" value="Submit">

Here’s an example of Textarea:

<textarea rows="4" cols="50">
Learn highly relevant job skills from professional developers at  *Austin Coding Academy* . Austin's first choice for a coding education.