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

Sharing is caring!

Attribute of
<link> HTML Tag
What does What Does Link Rel Do In HTML?: Get The Answer (With Code) Now do?
Specifies the relationship between two linked documents.

Defining Relationships

The <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.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for HTML.com and runs a content agency, Red Robot Media.

Browser Support for rel

AllAllAllAllAllAll