Horje

How to add HTML <form> rel Attribute

Definition and Usage

The rel attribute specifies the relationship between the current document and the linked document.


Browser Support

Syntax

<form rel="value">

Attribute Values

Value Description
external Specifies that the referenced document is not a part of the current site
help Links to a help document
license Links to copyright information for the document
next The next document in a selection
nofollow Links to an unendorsed document, like a paid link.
("nofollow" is used by Google, to specify that the Google search spider should not follow that link)
noopener  
noreferrer Specifies that the browser should not send a HTTP referrer header if the user follows the hyperlink
opener  
prev The previous document in a selection
search Links to a search tool for the document
index.html
Example: HTML
<!DOCTYPE html> 
<html> 
  
<body> 
    <h2 style="color: green">Horje</h2> 
    <h2>HTML form Attribute</h2> 
  
    <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> 
</body> 
  
</html>

Output should be:

How to add HTML <form> rel Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin