HTML link rel Attribute Last Updated : 12 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report The <link> rel attribute is an essential part of HTML that specifies the relationship between the current document and a linked document or resource. It is used in conjunction with the href attribute to define how the two documents relate to each other.Syntax: <link rel="value" href="URL">Attribute Values:AttributeDescriptionalternateSpecifies an alternative link of the document, such as a print page, translated, or mirror.authorDefines the author of the link.dns-prefetchSpecifies that the browser should preemptively perform DNS resolution for the target resource's origin.helpSpecifies a link to a help document.iconSpecifies an import icon in a given document.licenseSpecifies a link to copyright information for the document.nextProvides the link to the next document in the series.pingbackSpecifies the address of the pingback server.preconnectSpecifies that the target should be preemptively connected to the origin resource.prefetchSpecifies that the target document should be cached.preloadSpecifies that the browser must preemptively fetch and cache the resource.prerenderSpecifies that the browser should load and render the page in the background.prevSpecifies the previous document in a selection.searchSpecifies the search tool for the document.stylesheetImports a style sheet.Example of HTML link rel AttributeExample 1: In this example, we are showing the example of link rel attribute in html. index.html <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="index_screen.css"> <link rel="stylesheet" type="text/css" href="index_print.css"> </head> <body> <center> <h1>GeeksforGeeks</h1> <p><a href="https://www.geeksforgeeks.org/community/" target="_blank"> Click here </a> </center> </body> </html> Importance of the <link> rel AttributeBy understanding and effectively using the HTML <link> rel attribute, you can improve user experience on your webpages. It helps define how your current document interacts with others, making it easier for browsers and search engines to understand and index your content.Supported Browsers: The browsers supported by HTML rel Attribute are listed below Google ChromeEdge FirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML | rel attribute S shubham_singh Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML | rel attribute The rel attribute is used to specify the relationship between the current and the linked document. It is used only when href attribute present.Supported tags: The rel attribute is applied to the following elements:a: relarea: rellink: relform: relExample of HTML a rel Attribute  index.html<!DOCTY 1 min read 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:alternate: It defines an alternate version of the document i.e. print page, translated, or mirror.author 1 min read HTML lang Attribute This attribute is used to specify the language of the element content. Some examples of languages are en for English, es for Spanish, etc. Syntax:<element lang = "language_code">Attribute Value: This attribute contains a single value language_code which is used to specify the language of the c 2 min read HTML name Attribute The HTML name attribute labels elements, notably form inputs, identifying them for data submission. It's crucial for form processing and is often used in JavaScript DOM manipulation. Unique within a form.Note: This attribute has been DEPRECATED and is no longer recommended.Supported tags:ElementDesc 3 min read HTML is Attribute The HTML is attribute global attribute allows a standard element to adopt behavior defined by a custom built-in element, but only after the custom element is defined.Syntax<tag is="word-count"></tag>Here, the tag could be any HTML tag.HTML is Attribute ExampleExample 1: In this example, 2 min read HTML | value Attribute The value attribute in HTML is used to specify the value of the element with which it is used. It has different meaning for different HTML elements. Usage: It can be used with the following elements: <input>, <button>, <meter>, <li>, <option>, <progress>, and < 3 min read Like