Link Tag Html Css Learning

<Link> Tag Html Css Learning Examples

The <link> tag in HTML is used to define a link between a document and an external resource. The link tag is mainly used to link to external style sheets. This element can appear multiple times but it goes only in the head section. The link element is empty, it contains attributes only. The values in the link element denote how the item being linked to & is related to the containing document.

Definition and Usage
The <link> tag defines the relationship between the current document and an external resource.

The <link> tag is most often used to link to external style sheets or to add a favicon to your website.

The <link> element is an empty element, it contains attributes only.


Example

Link to an external style sheet:

<head>
  <link rel="stylesheet" href="styles.css">
</head>


Default link tag CSS style

Most browsers will display the <link> element with the following default values:

link {
  display: yes;
}

Comments :

Post a Comment