> For the complete documentation index, see [llms.txt](https://deltaclan.gitbook.io/superform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://deltaclan.gitbook.io/superform/superform-v0/validation-attributes/words-min-max.md).

# Words (Min/Max)

## Information

**Attribute:** <mark style="color:red;">`superform-words-min = number`</mark> or <mark style="color:red;">`superform-words-max = number`</mark>

**Apply to:** all text-related `input`, `textarea`, tag elements.

Validates specified input/textarea for minimum and/or maximm character length.&#x20;

{% hint style="info" %}
**Eg: "I want this input text to receive at least 25 words"**

Apply: superform-words-min = 25
{% endhint %}

{% hint style="warning" %}
Remember that you need to always apply **superform-validate="identifier"** so your input can enter the validation process.
{% endhint %}

<figure><img src="https://1615520621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhC4q4SkuRcLPZQrmF5BR%2Fuploads%2Fo7nCiUg2Jesw0qVrB4sS%2Fimage.png?alt=media&amp;token=8024027e-76e3-4ff0-8fe0-103f0175bea5" alt=""><figcaption><p>1) both <strong>superform-validate="textarea"</strong> to mark it for validation<br>and <strong>superform-words-min="25"</strong> to allow only <strong>at least 25</strong> words</p></figcaption></figure>

<figure><img src="https://1615520621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhC4q4SkuRcLPZQrmF5BR%2Fuploads%2F8zX2jGqVw3Esh2AgVB53%2Fimage.png?alt=media&amp;token=716acbf8-ed17-44fb-8c38-e6652a7b3504" alt=""><figcaption><p>2) <strong>superform-error="textarea"</strong> to show the corresponding error message.</p></figcaption></figure>

## Related Links

{% content-ref url="/pages/C4JRfk2w38FdHO2mlk3p" %}
[Validate & Error (must read)](/superform/superform-v0/validation-attributes/validate-and-error-must-read.md)
{% endcontent-ref %}
