JavaScript allows you to read click events from anything, which enables you to do quite a lot of cool and silly things. The smartest choice is to stick to semantic HTML. If it's clickable, as a general rule, it should be a button or an a tag. In this particular case, you can also use a details tag.