如何在HTML5中提交提交按钮?

给予 W3C’s HTML5 spec for the submit button

A button element must have both a start tag and an end tag.

具有开始和结束标签的提交按钮的示例是什么?

>< button type =“submit”>
>< button type =“submit”/>
>< button type =“submit”>< / button>
> 2& 3
>以上都没有

其他“singleton”标签的答案也一样,例如< input>或< img>?

解决方法

<button type="submit">Click me</button>

W3CMDN有更多的信息。

相关文章

HTML5和CSS3实现3D展示商品信息的代码
利用HTML5中的Canvas绘制笑脸的代码
Html5剪切板功能的实现
如何通过HTML5触摸事件实现移动端简易进度条
Html5移动端获奖无缝滚动动画实现
关于HTML5和CSS3实现机器猫的代码