Sử dụng thuộc tính rows để đặt số dòng hiển thị của textarea. Bạn có thể chạy mã sau để triển khai thuộc tính rows:
Ví dụ
<!DOCTYPE html>
<html>
<head>
<title>Thuộc tính rows trong HTML</title>
</head>
<body>
<form action="/cgi-bin/hello_get.cgi" method="get">
Nhập môn học <br />
<textarea rows="5" cols="50" name="description"> </textarea><br>
<input type="submit" value="gửi" />
</form>
</body>
</html>