I'm working on creating a customized button that will redirect users to another app when clicked.
Interestingly, this code snippet is functional:
<a href="{% url 'ridesharing:ride-list' %}" target="blank">Find a ride</a>
However, this code snippet is not working as expected:
<button type="button" class="btn btn-xl" style=" border-color: rgb(2,132,69); background-color: rgb(2,132,69); color: rgb(246,246,247); font-family: Verdana;font-size: large" href="{% url 'ridesharing:ride-list' %}">Find a ride</button>
I prefer using a button because it allows me to customize its appearance. How can I ensure that the button correctly links to the desired app?