HTML <link> Tags and Its Example

aimtocode

HTML <link> Tags:

The <link> element is used to define a relationship between an HTML document and an external resource. This element is most commonly used to define the relationship between a document and one or more external CSS stylesheets.

The HTML <link> tag is used for defining a link to an external resource. It is placed in in the <head> section of the HTML document. The <link> tag is commonly used for linking to an external style sheet. But it can also be used for other purposes such as assisting search engines by providing links to relevant resources.

HTML <link> Example:

Example 1:


Description:

Above link type is used to link either style or script file with in <head> </head> tag.

Example 2:

Example 3:



This Is also known as anchor tag.

This <a href=""> </a> link type can be used anywhere inside <body> </body> tag to navigate in any other page.

aimtocode