Link

Category:HTML Tags

Link

This link tag <link> is typically used to link CSS to HTML for external stylesheets. The link tag is used to define a link between a HTML document and an external resource.

Examples

Linking to a Stylesheet

Using <link> to link an HTML document to a style sheet ("style.css").

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

Syntax

<link></link>

Tips

  • The link tag <link> goes inside the <head> tag.
  • The link tag <link> allows you to import a stylesheet into your HTML document to control the appearance of all web pages.

Additional Information

For more information, see http://www.w3schools.com/tags/tag_link.asp

Found a bug in the documentation? Let us know at documentation@code.org