The <link/> Tag in HTML 5
The <link/> tag can be used to identify an external resource that is to be loaded with a web page or a hypertext link to another page. Which purpose the <link>
tag serves depends on the value of the rel
attribute.
Some uses of the <link> tag include:
- specify a favorites icon to be displayed at the beginning of the address bar
- specify default and alternate style sheets
- link to a feed for the page or web site
- link to profile(s) of the current web page author(s)
<link rel="shortcut icon" sizes="16x16" type="image/vnd.microsoft.icon" href="/favicon.ico"></link> <link rel="stylesheet" type="text/css" media="screen" href="/screen.css"/> <link rel="feed" href="http://www.HTML-5.com/feeds/html5-tutorial.xml"/>
For a good example of alternate style sheets, go to the differences section at the bottom of this article on the <link/> tag and then select the "Incorrect code in red" style from the View -> Page Style menu in Firefox or from the View -> Style menu in IE.
<a> tag for links to other HTML pages
To style text as hypertext links, highlighted with underlines, that that the user can click on to navigate to other web pages, use the HTML <a> tag.