HTML <form> rel Attribute (original) (raw)

Last Updated : 23 May, 2026

The rel attribute in the

tag specifies the relationship between the current document and the linked resource after form submission. It is mainly used when the target="_blank" attribute opens the response in a new tab or window.

**Syntax:

**Example 1: This example uses rel="noreferrer" to prevent the browser from sending referrer information to the target webpage during form submission.

HTML `

GeeksforGeeks

HTML form rel="noreferrer" Attribute

<b>This will avoid information passed to the post page </b>

<!-- It avoids passing the referrer information
    to target website by removing the referral 
    info from the HTTP header.
    It is safe to use -->
<form rel="noreferrer" action="mypage.php">
    <input type="search" placeholder="search here" />
    <input type="button" value="search" />
</form>

`

**Example 2: This example uses rel="external" to indicate that the form submission points to a resource outside the current website.

HTML `