We are independent & ad-supported. We may earn a commission for purchases made through our links.

Advertiser Disclosure

Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.

How We Make Money

We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently from our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.

What is a Rel Attribute?

Mary McMahon
By
Updated May 17, 2024
Our promise to you
WiseGeek is dedicated to creating trustworthy, high-quality content that always prioritizes transparency, integrity, and inclusivity above all else. Our ensure that our content creation and review process includes rigorous fact-checking, evidence-based, and continual updates to ensure accuracy and reliability.

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

Editorial Standards

At WiseGeek, we are committed to creating content that you can trust. Our editorial process is designed to ensure that every piece of content we publish is accurate, reliable, and informative.

Our team of experienced writers and editors follows a strict set of guidelines to ensure the highest quality content. We conduct thorough research, fact-check all information, and rely on credible sources to back up our claims. Our content is reviewed by subject matter experts to ensure accuracy and clarity.

We believe in transparency and maintain editorial independence from our advertisers. Our team does not receive direct compensation from advertisers, allowing us to create unbiased content that prioritizes your interests.

The rel attribute is an HTML attribute used to describe the relationship of a target page to the page that is linking it. Information is not displayed directly in the browser, but search engines and screen readers can both pick up the rel attribute and gather information about the network of connections on a page. The reverse is the rev attribute, used to contextualize the current page in relationship to what is being linked.

This attribute is written as rel="property" and would appear in a link like this: < a rel="home" href="http://www.wisegeek.com">wiseGEEK</a>. The rel attribute notes that the resource being linked is the home page, relative to the document where the link originates, such as this wiseGEEK article. Likewise, a site with affiliate partnerships might use a code like this: < a rel="affiliate" href="http://www.example.com">Friendly Affiliate</a>. When search engines crawl the site, they can understand the relationships between pages within a site, as well as off-site links.

Another common example of how this attribute can be used is in navigation, to prevent confusions and turnarounds. < a rel="next" href="http://www.example.com/2">Further Entries</a> might be used on a blog to provide a link to another page of entries. People can also use descriptors like “previous,” “stylesheet,” and “index” to provide descriptive tags for resources. The rel attribute can also be tied in with other code; for instance, a style sheet can be coded to display a small arrow next to a link with a rel="previous" for ease of navigation.

Like many HTML attributes, the rel attribute is not consistently applied. Some sites may use it extensively, and it can be very helpful for tools like building site maps. Other sites do not use it at all, and sometimes, odd uses of the attribute crop up and may confuse browsers. As HTML standards change, attributes go in and out of style, and it is important to make sure websites are updated accordingly to avoid problems like display errors.

People curious to know about browser support for various attributes can look up technical documentations on the websites for those browsers. It is important to be aware that even if the most current version of a browser recognizes and knows how to apply an attribute, older versions may not, and people concerned about reaching as many browsers as possible may want to consider this when coding sites. Sometimes, adjustments need to be made to site code for the benefit of people using older browsers in order to get them to display appropriately.

WiseGeek is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Mary McMahon
By Mary McMahon

Ever since she began contributing to the site several years ago, Mary has embraced the exciting challenge of being a WiseGeek researcher and writer. Mary has a liberal arts degree from Goddard College and spends her free time reading, cooking, and exploring the great outdoors.

Related Articles

Discussion Comments

Mary McMahon

Mary McMahon

Ever since she began contributing to the site several years ago, Mary has embraced the exciting challenge of being a...

Learn more
WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.