Quantcast
Channel: Class or href attribute first? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Class or href attribute first?

$
0
0

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>

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images