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

20th Jan 2021, 7:55 AM
Wan
Wan - avatar
3 Respostas
+ 1
Martin Taylor Thanks for correcting me. You are right. I have deleted my answer.
20th Jan 2021, 12:13 PM
Ore
Ore - avatar
+ 1
It is not bad, it is totally Stupid. Links won't work without redirecting them to a specific location using the "href" syntax.
21st Jan 2021, 7:48 AM
Shoaib Jamal
Shoaib Jamal - avatar