Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

Bad value “” for attribute “rows” on element “textarea”: The empty string is not a valid positive integer.

The attribute rows on a textarea element, when present, must be a positive integer.

The <textarea> HTML element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form. Its attributes rows and cols allow to define the dimensions of the text area by respectively specifying the numbers of rows and columns.

Example:

<textarea name="comments" rows="5" cols="25">
  It all works great!
</textarea>

Learn more:

Related W3C validator issues