HTML Introduction | HTML Forms | HTML Textarea Input

Textarea input: the textarea element

The input tag element can receive only one line of text, but the textarea tag element can receive multiple lines of text.

<textarea name="content" rows="5" cols="30"></textarea>

The rows and cols attributes are used to specify the width and height.

You can write the default value between the <textarea> and </textarea> tags. When a default value is entered, you can see that it is already entered when the first screen is displayed.

<textarea name="content" rows="5" cols="30">내용을 입력하세요.</textarea>

Run code