HTMLAnchorElement: rel プロパティ

HTMLAnchorElement.rel プロパティは rel 属性を反映しています。これは、空白で区切られたリンク種別のリストの入った文字列であり、<a> 要素で表されるリソースと現在の文書との関係を示します。

文字列です。

js
const anchors = document.getElementsByTagName("a");
for (const anchor of anchors) {
  alert(`Rel: ${anchor.rel}`);
}

仕様書

Specification
HTML Standard
# dom-a-rel

ブラウザーの互換性

BCD tables only load in the browser

関連情報