Great job on your solution, Alonso!
It's important to make a distinction between <button>
and <a>
tags because tools like screen readers behave differently depending on what kind of tag they encounter.
In this case, it's better to use the a
tag since you are creating links and that is what a
tags are meant for. If you used a button
, then you would need to put in extra effort to rework the html and css to behave like a button.
In general, it's easier to develop and better for accessibility to use the appropriate tag.
Hope this helps!
Marked as helpful
@alonsovzqz
Posted
@Brian-Pob thank you so much! That’s actually what I was intended to do, make it accessible and add more a11y markup since I think it’s a must on every project and not sure what else might be good to add for make it more accessible