diff b/w submit button and anchor tag
I am new to this site.Started with my first question on HTML what is the main difference between html button type submit and ancho开发者_StackOverflow社区r tag? can both do same things then what is the difference?
Both are different:
Anchor Tag: The HTML anchor element is used to create a link to a resource (another web page, a file, etc.) or to a specific place within a web page.
Submit Button: When a user clicks a submit button, the form is sent to the address specified in the action setting of the tag.
But behaviour of both elements can be changed using JavaScript
精彩评论