# How to add aria-label attribute in Markdown?

**URL:** <https://forums.realmacsoftware.com/t/how-to-add-aria-label-attribute-in-markdown/45080>\
**Category:** RapidWeaver Classic\
**Created:** [October 28, 2024, 7:18pm UTC](https://forums.realmacsoftware.com/t/how-to-add-aria-label-attribute-in-markdown/45080 "2024-10-28T19:18:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [October 28, 2024, 7:18pm UTC](https://forums.realmacsoftware.com/t/how-to-add-aria-label-attribute-in-markdown/45080/1 "2024-10-28T19:18:59Z")

</div>

Calling all coders… I’m working on a reasonably ‘accessible’ website that needs a bit more work as it is a local government body.

One of the issues raised is that links opening in a new browser window (i.e. links with target=“\_blank”) need to state that is what they are doing for visually impaired users. The best way to do this discretely (i.e. without visibly stating it on every link) is to add an aria-label attribute but I’m curious as to why it isn’t working in Markdown as it should be supported.

The codes I am trying to add are formatted as: '\<a href=”[https://mywebsite.com](https://mywebsite.com)” target=”\_blank” aria-label=”Link Text (opens in a new tab)”\>Link Text`

If I remove the aria-label the link works fine but adding it prevents it displaying as a link.

If I add the code to an HTML stack or a regular Text stack it works fine. Obviously I can do this, but all text is Markdown and I have a lot of these links.

Any help appreciated…

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [October 28, 2024, 9:31pm UTC](https://forums.realmacsoftware.com/t/how-to-add-aria-label-attribute-in-markdown/45080/2 "2024-10-28T21:31:33Z")

</div>

The aria label is not supported in markdown — You’ll need to use html or styled text.

I used the following code in a styled text area and it worked perfectly.

```auto
<a href=”https://mywebsite.com” target=”_blank” aria-label=”Link Text (opens in a new tab)">Link Text</a>

```

Hope that helps!

---

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [October 29, 2024, 10:06am UTC](https://forums.realmacsoftware.com/t/how-to-add-aria-label-attribute-in-markdown/45080/3 "2024-10-29T10:06:32Z")

</div>

Thanks Dan - thought this might be the case!
