I would like to know what is the difference between javascript:; and javascript:void(0); if I use them in href attribure for a>
javascript:;
javascript:void(0);
href
a>
Only that the latter javascript:void(0); is more readable and an accepted convention that says this code does nothing.
It's worth noting that industry standards have come a long way regarding this syntax. You should look into Progressive Enhancement.