Skip to main content

Command Palette

Search for a command to run...

link tag

Published
1 min readView as Markdown
link tag

The <link> element in HTML is used to link external resources, such as stylesheets, to an HTML document. It is placed in the head of the document and does not require a closing tag. Here is an example of how to use the <link> element to link a stylesheet to an HTML document:

<!DOCTYPE html>
<html>
<head>
  <link href="/path/to/stylesheet.css" rel="stylesheet">
</head>
<body>
  <!-- The rest of the HTML document goes here -->
</body>
</html>

The href attribute is used to specify the location of the resource, rel attribute is used to specify the relationship between the current document and the linked resource. In this case, the rel attribute is used to indicate that the linked resource is a stylesheet.

Interview-HTML

Part 16 of 18

In this series I will try to answer questions of HTML interviews in most simplest fashion. This will give user the chance of understanding the interview question of HTML in a conceptual manner.

Up next

Title tag

The title tag is used to specify the title of the page and it should be related to the web page. This is placed in the head of the document and it must have a closing tag. The text that is placed between the title tag is displayed in the title of the...

More from this blog