Open In App

HTML | <a> rel Attribute

The rel attribute is used to specify the relationship between the current and the linked document. It is used only when the href attribute is present. 

Syntax:



<a rel="value">

Attribute Values:

Example: 






<!DOCTYPE html>
<html>
<head>
    <title>HTML a rel Attribute</title>
</head>
 
<body>
    <p>Welcome to
        <a rel="noopener"
           href="https://ide.geeksforgeeks.org/">
            GeeksforGeeks
        </a>
    </p>
</body>
</html>

Output: 

Supported Browsers: The browser supported by HTML <a> rel Attribute are listed below:

Article Tags :