HTML Link Tag

Updated:06/24/2024 by Computer Hope

link element allows you to import the contents of a script or resource,

The HTML <link> element allows you to import the contents of a script or resource, such as a stylesheet, into your HTML document.

HTML Link Tagestablish the relationship between document and external CSS stylesheets.

Below is an example of a basic web page written in HTML with a description the  HTML Link Tag  .
   <!-- 
Example contain a Link Tag  of html.
It is  just create a simple web page in web browser
Note : open note paid and Save this code on notepad with extension of .html 
then right click and select option of Open with in Window user ,run with any browser and display output .
   -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html>
           <head>
            <title>Example page</title>
            <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
           </head>
           <body>
            <h1>This is a heading</h1>

          <!--
           here you can able see  link Tag
          -->

          <link rel="stylesheet" type="text/css" href="http://developerIndian.com/styles.css"> 


            <img src="images/smiley.webp" width="30" height="30" alt="Smiley"> 
            <a href="https://www.google.com/" title="Search Engine"> Google</a> 
            <a title="Hyper Text Markup Language"> HTML </a> 
            <input type="text" value="John Doe"> 
          
            <p>This is an <b>example</b> of a basic HTML page.</p>
           </body>
   </html>

Features of Link tag of HTML

  • A HTML document can have multiple <link> elements to load different script or page types.
  •   Link  element is an empty element, it contains attributes only.

Top Most Html Article