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/object/tflqhKUDDr8",
  "published": "2025-08-15T08:43:29Z",
  "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/object/Mo6v6WMdvco",
  "published": "2025-08-15T08:43:29Z",
  "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/object/IRZd6SPdIqU",
  "published": "2025-08-15T08:43:29Z",
  "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/object/tRpDZ2WjFnQ",
  "published": "2025-08-15T08:43:29Z",
  "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/object/go1rOYd-mJk",
  "published": "2025-08-15T08:43:29Z",
  "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/object/4q2exrTkZjM",
  "published": "2025-08-15T08:43:29Z",
  "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/object/er3OwqvJfP0",
  "published": "2025-08-15T08:43:29Z",
  "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/object/7CfuUcSuNM0",
  "published": "2025-08-15T08:43:29Z",
  "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/object/1VcYIUTxKKo",
  "published": "2025-08-15T08:43:29Z",
  "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/object/etFnfIAZyR0",
  "published": "2025-08-15T08:43:29Z",
  "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/object/lvI66kY7NoM",
  "published": "2025-08-15T08:43:29Z",
  "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/object/DNxWwifN76Q",
  "published": "2025-08-15T08:43:29Z",
  "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/object/5H_Il1nqRAs",
  "published": "2025-08-15T08:43:29Z",
  "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/object/hYZnI-2ValI",
  "published": "2025-08-15T08:43:29Z",
  "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/object/Itkr4U5CNxA",
  "published": "2025-08-15T08:43:29Z",
  "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/object/OA0bfISQrug",
  "published": "2025-08-15T08:43:29Z",
  "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/object/1cn9zzrtSz8",
  "published": "2025-08-15T08:43:29Z",
  "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/object/KEoLK26otgo",
  "published": "2025-08-15T08:43:29Z",
  "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/activity/XIW3XYGFGys",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev'>funfedi</a>",
    "id": "http://actor.example/object/odCU2ZO1ZBw",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/upulPH9os70",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' hreflang='en'>hreflang en</a>",
    "id": "http://actor.example/object/I3KvX_AhPto",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/nrS-Y0QO_uI",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' target='_self'>target _self</a>",
    "id": "http://actor.example/object/of7U4dzeK_o",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/PnKjfgNZPI4",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' target='_blank'>target _blank</a>",
    "id": "http://actor.example/object/lYjxEpir9u4",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/g2j4AWgV1zE",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' class='fun-red-link'>fun-red-link class</a>",
    "id": "http://actor.example/object/7A0bbtn5wcA",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/1ni_1L-DTI4",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' class='mention'>class mention</a>",
    "id": "http://actor.example/object/phFxMJOO4-g",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/M27nlMGgJOI",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' class='hashtag'>class hashtag</a>",
    "id": "http://actor.example/object/aS4D_ZRXVtA",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/TVuDtl_UDDc",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev/assets/samples.zip' download='samples.zip'>download</a>",
    "id": "http://actor.example/object/expHWNcQ6kI",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/YnfKWCBF9GQ",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$tag'>rel $tag</a>",
    "id": "http://actor.example/object/AgwY4l_DSFc",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/BKzNXbpKWK4",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$nofollow'>rel $nofollow</a>",
    "id": "http://actor.example/object/RdJmDsRkLFc",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/ZIWcUsjxgRs",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$opener'>rel $opener</a>",
    "id": "http://actor.example/object/En4IOeNejY8",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/07arptR1gxs",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$noopener'>rel $noopener</a>",
    "id": "http://actor.example/object/Wrh9E5ijXfM",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/DSH26Q2VbG8",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$noreferrer'>rel $noreferrer</a>",
    "id": "http://actor.example/object/7c9ADfj5CPs",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/BhqZ5GlW5V8",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$custom'>rel $custom</a>",
    "id": "http://actor.example/object/59OzfJ56Uxo",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/sP-aXrzxEtE",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$me'>rel $me</a>",
    "id": "http://actor.example/object/o-UngN9BHaY",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/8oh1qE1eZ-Y",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$external'>rel $external</a>",
    "id": "http://actor.example/object/sOVjHzGQvWU",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/y7L9b-Bjx-0",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$canonical'>rel $canonical</a>",
    "id": "http://actor.example/object/oCLYkRWKB8A",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "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/activity/jvG9NID0LTU",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "<a href='https://funfedi.dev' rel='$alternate'>rel $alternate</a>",
    "id": "http://actor.example/object/uE0kF46jNPU",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}