What Does Link Rel Do In HTML?: Get The Answer (With Code) Now
Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
- Attribute of
- HTML Link Options Illustrated With Code Examples
- What does
What Does Link Rel Do In HTML?: Get The Answer (With Code) Nowdo?
- Specifies the relationship between two linked documents.
<link> element creates a link between your HTML document and an external resource. The
rel attribute specifies the relationship between the two documents.
<link rel="stylesheet" type="text/css" href="http://mysite.com/styles.css">
Search engines may also use the information in the ‘rel’ attribute to determine how to index or display the page.
Browser Support for rel