[Fixed] <a> tag with type button and btn-primary class is not working in MacOS safari

Issue

Anchor tag with type button and btn-primary class is not working in MacOS safari but same code is working fine in chrome , edge browser

<a class="btn btn-primary " style="border-radius: 25px;" type="button" href="#" <i class="fa fa-download" aria-hidden="true"></i>> Download Client</a>

MACOS safari browser

IOS error

chrome browser

enter image description here

please suggest me the right way to implement the tag with bootstrap

Solution

Remove the type="button" and it should work.

<a class="btn btn-primary" style="border-radius: 25px;" href="#"> 
    <i class="fa fa-download" aria-hidden="true"></i> Download Client
</a>

Happy coding!

Leave a Reply

(*) Required, Your email will not be published