Line 2: Line 2:
 
textarea
 
textarea
 
===Type===
 
===Type===
_input
+
textarea
 
===Synopsis===
 
===Synopsis===
 
How to render a textarea input field  
 
How to render a textarea input field  
 
===Description===
 
===Description===
_input elements of type="textarea" create larger text input fields that let the user enter a text.
+
textarea elements create larger text input fields that let the user enter a text.
This differs from original HTML5 as textarea is not part of an input field, but an input type on its own.
+
It also differs from other input fields as there is no value you can set. Instead you use an opening input type and a closing one. The value will be in between. See example.
It also differs from other _input fields as there is no value you can set. Instead you use an opening _input type and a closing one. The value will be in between. See example.
 
 
===Parameters===
 
===Parameters===
type="textarea"
+
<code><nowiki><textarea></textarea></nowiki></code>
  
 
For all supported argument have a look at the link at the links section.
 
For all supported argument have a look at the link at the links section.
 
===Example===
 
===Example===
 
<syntaxhighlight lang="html">
 
<syntaxhighlight lang="html">
<_input type="textarea" name="comment" placeholder="Type your comment" required="required">This is the text value</_input>
+
<textarea name="comment" placeholder="Type your comment" required="required">This is the text value</textarea>
 
</syntaxhighlight>
 
</syntaxhighlight>
<_input type="textarea" name="comment" placeholder="Type your comment" required="required">This is the text value</_input>
+
<textarea name="comment" placeholder="Type your comment" required="required">This is the text value</textarea>
 
===Note===
 
===Note===
 
===Links===
 
===Links===
 
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
 
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea

Revision as of 11:38, 3 January 2023

Name

textarea

Type

textarea

Synopsis

How to render a textarea input field

Description

textarea elements create larger text input fields that let the user enter a text. It also differs from other input fields as there is no value you can set. Instead you use an opening input type and a closing one. The value will be in between. See example.

Parameters

<textarea></textarea>

For all supported argument have a look at the link at the links section.

Example

<textarea name="comment" placeholder="Type your comment" required="required">This is the text value</textarea>

Note

Links

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea