The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Adding Href to Button
Hi what is best way to ad href to button class
button href=”#” or button a href=”#” /button
Question answered here:
<button><a href="#">Button Text</a></button>
^^ Better than the solutions I provided
I would definitely go with:
<a class="button" href="#">Button</a>
Using two elements just seems like a waste here.