The link element allows authors to link external documents into the HTML document.
Usually it is used to link external .css (style) files into the document.
Another common use of the link tag is to identify an own or a specific search provider, as shown in the second example.
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
If you want to use this element dynamically, visit the JavaScript page for this tag: link.
This example shows how to tell the client browser that you offer a search plugin from HTML. If the search provider is currently installed, it will be selected in the drop down menu of the Instant Search box.
Code
searchProvider.xml
<head><linkrel="search"type="application/opensearchdescription+xml"href="searchProvider.xml"title="Dottoro Search"/></head><body>
Please open the search options of the Instant Search box in the menubar.
</body>
<?xmlversion="1.0"?><OpenSearchDescriptionxmlns="http://a9.com/-/spec/opensearch/1.1/"xmlns:moz="http://www.mozilla.org/2006/browser/search/"><!-- a brief human-readable title that identifies the search engine --><ShortName>Dottoro</ShortName><!-- a brief human-readable title that identifies the search engine --><LongName>Dottoro Search Engine</LongName><!-- description of the search engine --><Description>Use Dottoro to search on dottoro.com</Description><!-- an URL where the search requests can be handled --><Urltype="text/html"method="get"template="http://www.dottoro.com/search/search.php?search={searchTerms}"><Paramname="search"value="{searchTerms}"/></Url><!-- the URL of the suggestions --><Urltype="application/x-suggestions+json"method="get"template="http://www.dottoro.com/search/suggestions.php?search={searchTerms}"/><!-- e-mail where the description document can be reached --><Contact>search@dottoro.com</Contact><!-- the image that is associated with the search engine --><Imageheight="16"width="16"type="image/x-icon">http://www.dottoro.com/favicon.ico</Image><!-- character encoding of the search --><InputEncoding>UTF-8</InputEncoding><!-- the URL of the Search Home Page --><moz:SearchForm>http://www.dottoro.com/search.php</moz:SearchForm></OpenSearchDescription>