Last Updated on April 26, 2023 by Roshan Parihar
HTML link tag is used to link external document inside web pages.
This can be stylesheet to include CSS for the styling of the document. The link tag can be include inside head tag of the web document.
Syntax
1 |
<link rel="relationship text between current doc and destination url" type="describe the type of doc" href="location of the resource"/> |
1 |
<link rel="stylesheet" type="text/css" href="style.css"/> |
List of HTML link tag attributes
Sr. No. | Attribute options | Description |
---|---|---|
1 | href | This option used to specify the location of the document to include inside the web pages. The value for this is the location of the document. |
2 | hreflang | This attribute is used to specify the language of the document. The value for this is the language code. |
3 | media | This is used to specifies on what device the linked document will be displayed. |
4 | rel | This is used specify the relationship between the current document and the linked document. alternate author dns-prefetch help icon license next pingback preconnect prefetch preload prerender prev search stylesheet |
5 | type | This is used to specifies The type of the document. |
Resources and References
1. W3C Specification.
2. HTML living standard
3. W3C project using Github
I have noticed you don’t monetize your blog, don’t waste your traffic,
you can earn extra bucks every month because you’ve got hi quality content.
If you want to know how to make extra bucks, search for: Mrdalekjd methods for $$$