A Problem with Link Relationships
Post from December 23, 2022, filed under Web Development (feed).
Ćlvaro Montoro just wrote a detailed post about the rel attribute, A Theory of Web Relativity. It suggests to make more use of rel.
I didnāt set out to write about rel (I didnāt set out to write anything, really, with too much to do before and over the holidays). But thereās something about rel that Ćlvaro doesnāt mention, but that needs mentioning.
Itās the toll on maintainability, by linked resources outside of oneās control.
rel has many important and useful valuesāsee Ćlvaroās postā, but also (like its old counterpart, rev) many values that are notoriously difficult to maintain.
Whatās the Problem?
First, we need to be sure we use the rel attribute correctly. With something like style sheets, thatās straightforward, but in other cases, itās not. Still, letās assume correct use.
Then, we need to make sure we keep it up-to-date.
This is where problems can begin, as with invisible information, this is traditionally harder. We donāt have enough exposure to this kind of metadata to even know itās there.
With invisible information on resources outside of oneās control (as with external links and resources), keeping link relationships up-to-date requires regular effort, which makes it more costly.
(Take link rot and that after 5ā10 years, 65ā70% of links arenāt working anymore. That is, weāre already bad at managing linksākeeping invisible link relationships up-to-date is an even more difficult ask.)
With invisible information about changing types of relationships (as with XFN) on resources outside of oneās control, upkeep is essentially impossible to sustain.
That is, for a rel for a style sheet or feed, there isnāt much of a problem. The resource types donāt change and the relationships themselves donāt, either. For author information or tags, the ground starts moving. If pointing to something external, there is an increased chance these link relationships need attention. For neighbors or crushes (XFN), which almost certainly are external and very likely to change, we have the finger not on but in the wound.
Therefore, yes, enriching documents with more metadata, using rel, has benefits, some of which we do claim and some of which we can claim. But maintaining this kind of invisible information for anything that can change, over the years, is so difficult, it wonāt just be a problem for more use of relāit already has been a problem for use of rel. (XFN is cool butāthis is why no one is making full use of it.)
If You Still Choose to Make More Use of rel
For an HTML minimalist (did you check my latest book? I love minimal HTML), this is enough to stay far away from many applications of rel that involve external resources (especially XFN).
But if youāre not a minimalist and you either deal with more maintainable use cases, or are still not concerned about maintainability, what can you do?
I tested ChatGPT for this (why not, this is 2022)āand it offered two interesting recommendations that I will share as is (I really need to get going).
Document the use of the
relattribute: It is a good idea to document the use of therelattribute on a website, either in a separate document or as part of the code base. This can help developers understand the intended relationships between different elements on the page and ensure that therelattribute is used consistently.Use the
relattribute sparingly: While therelattribute can be useful for conveying relationships between elements on a page, it is important not to overuse it. Using too many different values or using the attribute unnecessarily can make it difficult to maintain and understand the relationships between different elements on the page.
Avoid letting link relationships become a maintenance sink.
See you for one or two more posts this year but other than thatāhappy holidays!
About Me
Iām Jens, and Iām an engineering leadācurrently manager for Developer Experience at LivePersonāand author. Iāve worked as a technical lead for Google, Iām close to W3C and WHATWG, and I write and review books for OāReilly. I love trying things, sometimes including philosophy, art, and adventure. Here on meiert.com I share some of my views and experiences.
If you have a question or suggestion about what I write, please leave a comment (if available) or a message. Thank you!
Read More
Maybe this is interesting to you, too:
- Previous: A Brief History of UITest.com
- More under Web Development, or from 2022
- Most popular posts
Looking for a way to comment? Comments have been disabled, unfortunately.
Get a good look at web development? Try The Web Development Glossary (2020). With explanations and definitions for literally thousands of terms from Web Development and related fields, building on Wikipedia as well as the MDN Web Docs. Available at Apple Books, Kobo, Google Play Books, and Leanpub.

