# Email Validation

Attribute: **none**

{% hint style="info" %}
Superform validates for **"<name@domain.com>"** pattern only an<mark style="color:orange;">`EMAIL INPUT`</mark> tag by just marking the input for validation with:

<mark style="background-color:green;">superform-validate="identifier"</mark>\
`eg.`<mark style="background-color:green;">superform-validate=user-email</mark>

\
This way you also add a text error message in case the email provided by the user doesn't match the correct pattern with <mark style="background-color:red;">superform-error = "identifier"</mark>

{% endhint %}

<figure><img src="https://1615520621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhC4q4SkuRcLPZQrmF5BR%2Fuploads%2FOu76bXoCVRvzFPHsjew1%2Fimage.png?alt=media&#x26;token=43a3eb82-f694-4803-86e9-8da181ecf48e" alt=""><figcaption><p>1) Just <strong>superform-validate="identifier"</strong> attribute to mark it for validation.</p></figcaption></figure>

<figure><img src="https://1615520621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhC4q4SkuRcLPZQrmF5BR%2Fuploads%2Fzcidd2Nu5bwQyv86xb4r%2Fimage.png?alt=media&#x26;token=1afed1d2-8cbc-4ff7-8bff-ad5fae3929d4" alt=""><figcaption><p>2) Just <strong>superform-error="identifier"</strong> attribute to show corresponding error message.</p></figcaption></figure>

## Related Links

{% content-ref url="validate-and-error-must-read" %}
[validate-and-error-must-read](https://deltaclan.gitbook.io/superform/superform-v0/validation-attributes/validate-and-error-must-read)
{% endcontent-ref %}
