HTML - attributes - rows

revision:


Content

"rows" attribute : specifies the height of text area syntax some examples


"rows" attribute : specifies the height of text area

top

The rows attribute specifies the visible height of a text area, in lines. The size of a textarea can also be specified by the CSS "height" and "width" properties.

The rows attribute can be used on the following element: <textarea>.


syntax

top

<textarea rows="number"></textarea>

number: specifies the height of the text area (in lines). Default value is 2.


some examples

top
codes
                    <textarea style="margin-left:3vw;" rows="6" cols="50">By using the examples, tutorials,
                    and projects on my website, you will learn how to make a website. The only thing we ask
                    you for is to devote enpugh effort and time to his undertaking.</textarea>
                
Name :
email :
Describe yourself :

codes:
                    <form style="margin-left:3vw;" name="user_info" action="action.php" method="post"> 
                        Name : <input type="text" name="name"><br>
                        email  : <input type="text" name="email"><br>
                        Describe yourself : <br> 
                        <textarea rows="10" cols="20" name="describe_yourself">
                        </textarea>
<input type="submit" name="submit" value="Submit"> </form>