HTML表單 form

<input>  單行文字

type:類型
name:欄位名稱(取名)
placeholder:預設値
required:必填
<input type="text" name="firstname" placeholder="姓名" required="true">

Display

<textarea>  多行文字

<textarea name="comment" placeholder="意見" required="true">

Display

<input>  送出按鈕

type=””submit”(預設顯示文字為submit/提交)

<input type="submit" name="send" required="true">

Display

<input>  更改提交文字

value=”註冊”(把提交改為註冊)
<input type="submit" name="send" required="true" value="註冊">

Display

Leave a Reply

Your email address will not be published. Required fields are marked *