When using an anchor tag, is it best practice to put the class first or the href?
<a class="this-class" href="#">Home</a>
OR
<a href="#" class="this-class">Home</a>
The order is irrelevant, but it is good practice to pick an order (i.e. href then class) and keep it consistent throughout your application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With