<form method=“link” > or ? What's the difference?

后端 未结 5 2118
我寻月下人不归
我寻月下人不归 2020-11-30 10:40

I saw that we can write:

To make a \"link b

5条回答
  •  [愿得一人]
    2020-11-30 10:50

    Differences in functionality.

    While yes, they both behave somewhat like one another, there's still some reasons to use elements for what they're meant for. For the most part, you lose functionality with a button link; you cannot right click and open in a new tab or window, for example.

    Consider semantics and specs as well: The button element (whichever variation you use; or ) was meant for use by forms.

提交回复
热议问题