开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜