开发者

diff b/w submit button and anchor tag

开发者 https://www.devze.com 2023-03-11 17:37 出处:网络
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?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消