Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Textarea
Textarea

Texarea is used to create text box for user input like message or any text.

Syntax

<form>
<textarea>Any message</textarea>
</form>


You can use textarea any where within an HTML document.


Example


Note:

You can give input to textarea by direct writting message betwwen open and close tag like <textarea>message</textarea> or like above in example.


Textarea is pair tag and output of textarea is text box like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create a form
  • Create a textarea
  • Create a submit button

save file with name task.html or task.htm and then open it using any browser and see results.


Solution




Don't forget textarea is non empty element which means it always comes in pair.