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/SVTr0Nunh14",
  "published": "2025-07-31T07:23:46Z",
  "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/zrhIuTFO_3c",
  "published": "2025-07-31T07:23:46Z",
  "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/-dVJcGgCOQY",
  "published": "2025-07-31T07:23:46Z",
  "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/hF8IW14D_fw",
  "published": "2025-07-31T07:23:46Z",
  "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/I4mGe9cNoIw",
  "published": "2025-07-31T07:23:46Z",
  "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/Jk6u1cTRiCQ",
  "published": "2025-07-31T07:23:46Z",
  "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/oMbz6yyEztk",
  "published": "2025-07-31T07:23:46Z",
  "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/5RW6Hea1hPU",
  "published": "2025-07-31T07:23:46Z",
  "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/SpAGnH7dUu4",
  "published": "2025-07-31T07:23:46Z",
  "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/4h68rJ_-uIQ",
  "published": "2025-07-31T07:23:46Z",
  "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/ygtgZEDyM54",
  "published": "2025-07-31T07:23:46Z",
  "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/6g2kI0hFe4U",
  "published": "2025-07-31T07:23:46Z",
  "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/2tGcu5dkPFs",
  "published": "2025-07-31T07:23:46Z",
  "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/1jFTVPMmF48",
  "published": "2025-07-31T07:23:46Z",
  "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/9LTwZcyiVqo",
  "published": "2025-07-31T07:23:46Z",
  "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/3KmoFQBAvBg",
  "published": "2025-07-31T07:23:46Z",
  "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/BEY6UqIxUpo",
  "published": "2025-07-31T07:23:46Z",
  "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/MQeFeVPATxg",
  "published": "2025-07-31T07:23:46Z",
  "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/Kk5RzX9491M",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev'>funfedi</a>",
    "id": "http://actor.example/2KncD2SIslk",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/GtOKGghM4As",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' hreflang='en'>hreflang en</a>",
    "id": "http://actor.example/sTHBtow_84U",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/KZoNAH_d8hM",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' target='_self'>target _self</a>",
    "id": "http://actor.example/aKVnKWnQTX8",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/dAGwsh9NB_A",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' target='_blank'>target _blank</a>",
    "id": "http://actor.example/XKDUtLLsdbM",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/DWUyGQ8dbl8",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' class='fun-red-link'>fun-red-link class</a>",
    "id": "http://actor.example/PdJEemQZrAQ",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/wHuDLd-LVa4",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' class='mention'>class mention</a>",
    "id": "http://actor.example/M80AJVRk81g",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/l8boEjvCGZo",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' class='hashtag'>class hashtag</a>",
    "id": "http://actor.example/4WMkmiZDRfA",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/yOx2LKxiU08",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev/assets/samples.zip' download='samples.zip'>download</a>",
    "id": "http://actor.example/Ie-115yAENQ",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/5aBj0szvVSU",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$tag'>rel $tag</a>",
    "id": "http://actor.example/k-OCBthwPIM",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/ceN_WTHz7YM",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$nofollow'>rel $nofollow</a>",
    "id": "http://actor.example/nEgkUZlnJcA",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/ztlfo0GDNJk",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$opener'>rel $opener</a>",
    "id": "http://actor.example/aN4NI4nmbYI",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/8k10ftmVkmA",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$noopener'>rel $noopener</a>",
    "id": "http://actor.example/G-uRnO_O9A0",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/f03Bwr3uKew",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$noreferrer'>rel $noreferrer</a>",
    "id": "http://actor.example/5e1d4f8KezM",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/7HDWPGSVjpg",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$custom'>rel $custom</a>",
    "id": "http://actor.example/K-57gwczhK8",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/o_hXqwJjWfc",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$me'>rel $me</a>",
    "id": "http://actor.example/_JWsaxfjQAc",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/MNk2_jbC5Vk",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$external'>rel $external</a>",
    "id": "http://actor.example/yZ60CuJ7Gwk",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/D51xS8TPNZo",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$canonical'>rel $canonical</a>",
    "id": "http://actor.example/ce1oe3fv8dY",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "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/KQGoPkr2wRo",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$alternate'>rel $alternate</a>",
    "id": "http://actor.example/MdIwMcQILoc",
    "published": "2025-07-31T07:23:46Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-07-31T07:23:46Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}