HTML | <link> rel Attribute

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

Syntax:
<link rel=”value”>

Attribute Values



  • alternate: It specifies the alternative link of the document(i.e. print page, translated or mirror).
  • author: It define author of the link
  • dns-prefetch: It Specifies that the browser should preemptively perform DNS resolution for the target resource’s origin
  • help: It specifies a link to a help document. Example: <link rel=”help” href=”/help/”>
  • icon: It specifies import icon in a given document
  • license: It specifies a link to copyright information for the document
  • next: It provide the link of next document in series
  • pingback: It specifies the address of the pingback serve
  • preconnect: It specifies the target should be preemptively to the origin resource
  • prefetch: It specifies that the target document should be cached.
  • preload: It specifies that the browser must preemptively fetch and cache
  • prerender: It specifies that the browser should load
  • prev: It specifies the previous document in a selection
  • search: It specifies the search tool for the document.
  • stylesheet: It Imports a style sheet

Example of HTML link rel Attribute

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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://ide.geeksforgeeks.org/tryit.php"
        target="_blank"
    Click here 
    </a
    </center
</body
  
</html>                    

chevron_right


Output:

Supported Browsers:The browsers supported by HTML video preload Attribute are listed below

  • Google Chrome 4.0
  • Firefox 4.0
  • Apple Safari 4.0
  • Opera 10.5
  • Internet Explorer/Edge



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.