

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do we set the visible number of lines in a text area in HTML?
Use the rows attribute to set the visible number of lines in a text area. You can try to run the following code to implement rows attribute −
Example
<!DOCTYPE html> <html> <head> <title>HTML rows attribute</title> </head> <body> <form action = "/cgi-bin/hello_get.cgi" method = "get"> Enter subject <br /> <textarea rows = "5" cols = "50" name = "description"> </textarea><br> <input type = "submit" value = "submit" /> </form> </body> </html>
- Related Questions & Answers
- How do we display the visible width of a text area in HTML?
- How do we display a text area in HTML?
- How do we set text font in HTML?
- How do we set the type of element in HTML?
- How do we include the direction of text display in HTML?
- How do we set the text direction for the content in an element in HTML?
- How do we create the title of the text track in HTML?
- How do we include big text in HTML?
- How do we add bold text in HTML?
- How do we create underlined text in HTML?
- How do we create preformatted text in HTML?
- How do we display inserted text in HTML?
- Set the shape of the area in HTML
- How do we include an emphasized text in HTML?
- How do I display only the visible text with jQuery?
Advertisements