Comparing Anchor Tags to Buttons to Inputs

Anchor tags are different than buttons, but they can sometimes be used to perform the same task, even though the way we style them and code them might be quite different. The three elements below may look similar, but the first one is an anchor tag styled to look like a button. The second one is a true button. And the third one is an input of the button type. Look at the source code to see how each one of these is different.

JS Reference