2010-11-09 29 views
23

鑑於W3C's HTML5 spec for the submit button如何在HTML5中製作提交按鈕?

按鈕元素必須同時具有開始標記和結束標記。

什麼是帶有開始和結束標籤的提交按鈕的示例?上述

  1. <button type="submit">
  2. <button type="submit" />
  3. <button type="submit" ></button>
  4. 2&3
  5. 無是對答案爲其他的 「單」 標記是相同的,等<input><img>

+1

「singleton」標籤在HTML5規範中被稱爲void元素。 – 2013-07-23 22:33:28

回答

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

W3CMDN有更多信息。