开发者

How do you make a submit button in HTML5?

开发者 https://www.devze.com 2023-01-24 02:11 出处:网络
Given W3C\'s HTML5 spec for the submit button: A button element must have开发者_如何学Go both a start tag and an end tag.

Given W3C's HTML5 spec for the submit button:

A button element must have开发者_如何学Go both a start tag and an end tag.

what's an example of a submit button with a start and end tag?

  1. <button type="submit">
  2. <button type="submit" />
  3. <button type="submit" ></button>
  4. 2 & 3
  5. None of the above

Is the answer the same for other "singleton" tags, like <input> or <img>?


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

W3C and MDN has more information.

0

精彩评论

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