Skip to content

The anchor HTML tag

The anchor HTML tag is used to create hyperlinks. See MDN : The Anchor element for its description.

The goal here is to test variations of the attributes.

Objects

Object 1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev'>funfedi</a>",
  "id": "http://actor.example/MAdS2JYLMek",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 2

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' hreflang='en'>hreflang en</a>",
  "id": "http://actor.example/miiPshKldAE",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 3

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' target='_self'>target _self</a>",
  "id": "http://actor.example/ym4oCn35KVw",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 4

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' target='_blank'>target _blank</a>",
  "id": "http://actor.example/rlWUkg4-mLU",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 5

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' class='fun-red-link'>fun-red-link class</a>",
  "id": "http://actor.example/5QBE5RDWszc",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 6

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' class='mention'>class mention</a>",
  "id": "http://actor.example/mva7sp42HoE",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 7

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' class='hashtag'>class hashtag</a>",
  "id": "http://actor.example/B37W-34k8xU",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 8

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev/assets/samples.zip' download='samples.zip'>download</a>",
  "id": "http://actor.example/0xpnO0vXNz8",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 9

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' rel='$tag'>rel $tag</a>",
  "id": "http://actor.example/mWavjnb4vWI",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 10

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' rel='$nofollow'>rel $nofollow</a>",
  "id": "http://actor.example/0zaLFBUWcq4",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 11

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' rel='$opener'>rel $opener</a>",
  "id": "http://actor.example/GEwsT1U6tW4",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 12

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' rel='$noopener'>rel $noopener</a>",
  "id": "http://actor.example/5jVegXx42Iw",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 13

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' rel='$noreferrer'>rel $noreferrer</a>",
  "id": "http://actor.example/P6E4MLbPnWw",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 14

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' rel='$custom'>rel $custom</a>",
  "id": "http://actor.example/jderexMPXZU",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 15

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' rel='$me'>rel $me</a>",
  "id": "http://actor.example/tqIrHp6H_t0",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 16

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' rel='$external'>rel $external</a>",
  "id": "http://actor.example/3DuydSnBPS8",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 17

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' rel='$canonical'>rel $canonical</a>",
  "id": "http://actor.example/C81UKxZlFAM",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 18

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "<a href='https://funfedi.dev' rel='$alternate'>rel $alternate</a>",
  "id": "http://actor.example/DxqbI9eciso",
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Activities

Activity 1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/sGupGOrIJmM",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev'>funfedi</a>",
    "id": "http://actor.example/FHFp9Qt1qC0",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 2

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/PtJzFCjXC2A",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' hreflang='en'>hreflang en</a>",
    "id": "http://actor.example/V3005DdKnZc",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 3

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/erwhidopu2s",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' target='_self'>target _self</a>",
    "id": "http://actor.example/YR_1Q5pjeEU",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 4

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/th7pLm-PMIQ",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' target='_blank'>target _blank</a>",
    "id": "http://actor.example/_vZ7JhNVTGU",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 5

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/xS9XOUCjRlA",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' class='fun-red-link'>fun-red-link class</a>",
    "id": "http://actor.example/TlcIsU8r320",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 6

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/cx7Rey7vDvU",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' class='mention'>class mention</a>",
    "id": "http://actor.example/lheJRHoShOg",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 7

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/JAhU1Tb5ztY",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' class='hashtag'>class hashtag</a>",
    "id": "http://actor.example/BH61RSviJSg",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 8

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/pGqYZGkZpzU",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev/assets/samples.zip' download='samples.zip'>download</a>",
    "id": "http://actor.example/9pFlGYovZQI",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 9

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/aeOMqdXKVJU",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$tag'>rel $tag</a>",
    "id": "http://actor.example/Bfd5XPdK5Nk",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 10

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/olCpqAhA0Tc",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$nofollow'>rel $nofollow</a>",
    "id": "http://actor.example/qhx3ctG6tNs",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 11

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/1utK010IT7A",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$opener'>rel $opener</a>",
    "id": "http://actor.example/IvFUxntaG-k",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 12

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/yLYJ8vhd6_8",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$noopener'>rel $noopener</a>",
    "id": "http://actor.example/oowEeioxbZw",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 13

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/mmihjkrZIQs",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$noreferrer'>rel $noreferrer</a>",
    "id": "http://actor.example/LIkvsgXparg",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 14

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/WFgnj1EkD5Q",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$custom'>rel $custom</a>",
    "id": "http://actor.example/-8Oj0Lb0rgU",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 15

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/mnkf2XTSRro",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$me'>rel $me</a>",
    "id": "http://actor.example/MV6Qn1-58j8",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 16

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/04P0uW4ctr8",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$external'>rel $external</a>",
    "id": "http://actor.example/4jU6SuTSn1M",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 17

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/2v-mnFZjLaA",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$canonical'>rel $canonical</a>",
    "id": "http://actor.example/a9byRmjKwME",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 18

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/2IMJkFJiXVc",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$alternate'>rel $alternate</a>",
    "id": "http://actor.example/FfszzNpOjFA",
    "published": "2025-07-15T09:07:23Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-15T09:07:23Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}