<textarea>
Description:
This element creates a multiline text entry control. This element is usually used in conjunction with the <form> element.
Syntax:
<textarea attributes events> . . . </textarea>
Example:
<html>
<head>
<title>textarea element example</title>
</head>
<body>
<form name="form1" method="post" action="">
<p>
<fieldset align="center">
<textarea name="textfield1" cols="40" wrap="hard">your name and surname</textarea>
<br>
</fieldset>
</p>
</form>
<form name="form2" method="post" action="">
<p>
<fieldset>
<input type="text" name="textfield3" value="Street address" size="65"><br>
<input type="text" name="textfield4" value="City" size="45"><br>
<input type="text" name="textfield5" value="Zip Code" size="55">
</fieldset>
</p>
</form>
</body>
</html>
rows
Description:
This attribute establishes the height of the element in terms of rows. The value is indicated by an integer.
Syntax:
<textarea rows="value"> . . . </textarea>
Example:
<html>
<head>
<title>textarea element example</title>
</head>
<body>
<form name="form1" method="post" action="">
<p>
<fieldset align="center">
<textarea name="textfield1" cols="40" rows="2" wrap="hard">your name and surname</textarea>
<br>
</fieldset>
</p>
</form>
</body>
</html>
Home
HTML CSS Book
HTML reference
HTML CSS Book
HTML reference
Tag:
- <a>
- <acronym>
- <address>
- <area>
- <article>
- <aside> for SideBar
- <audio>
- <b>
- <base>
- <bdi>
- <bdo>
- <blockquote>
- <body>
- <br>
- <button>
- <canvas>
- <caption>
- <cite>
- <code>
- <col>
- <colgroup>
- <dd>
- <del>
- <details> for expandable section
- <dfn>
- <div>
- <dl>
- <!DOCTYPE>
- <dt>
- <em>
- <embed>
- <fieldset>
- <figure> for content with caption
- <footer> for footers
- <form>
- <frame>
- <frameset>
- <head>
- <header> for headers
- <hgroup> for header grouping
- <hN>
- <hr>
- <html>
- <i>
- <iframe>
- <img>
- <input>
- <ins>
- <kbd>
- <keygen>
- <label>
- <legend>
- <li>
- <link>
- <mark> to highlight
- <map>
- <meta>
- <meter>
- <nav> for navigation
- <noscript>
- <object>
- <ol>
- <output>
- <optgroup>
- <option>
- <p>
- <param>
- <pre>
- <progress>
- <q>
- <ruby>, <rt>, and <rp> Elements
- <rt>
- <ruby>
- <samp>
- <script>
- <section> marks sections
- <select>
- <span>
- <strong>
- <style>
- <sub>
- <sup>
- <table>
- <tbody>
- <td>
- <textarea>
- <tfoot>
- <thead>
- <th>
- <time> for date and time
- <title>
- <tr>
- <ul>
- <var>
- <video>
Related: