0
is it bad to use <a> without href?
maybe not a good case or question, i made my navbar with <a> anchor tag and did style it but then i have new idea to make my navbar have drop down menu. so instead of remaking the tag become <div> or anything else then restyling it, i want to keep the <a> and remove href also add class on it. so is it bad for something or bad code or any effect if i remove href then add class? or any good suggestion for my problem? thank you master
3 Respostas
+ 1
Martin Taylor Thanks for correcting me. You are right. I have deleted my answer.
+ 1
It is not bad, it is totally Stupid. Links won't work without redirecting them to a specific location using the "href" syntax.