HTML&PHP學習筆記(1)

來源:互聯網
上載者:User

標籤:style   blog   io   color   ar   os   sp   for   資料   

<form action="processorder.php" method="post"><table border="0"><tr bgcolor="#cccccc">  <td width="150">Item</td>  <td width="15">Quantity</td></tr><tr>  <td>Tires</td>  <td align="center"><input type="text" name="tireqty" size="3"     maxlength="3" /></td></tr><tr>  <td>Oil</td>  <td align="center"><input type="text" name="oilqty" size="3"      maxlength="3" /></td></tr><tr>  <td>Spark Plugs</td>  <td align="center"><input type="text" name="sparkqty" size="3"     maxlength="3" /></td></tr><tr>  <td>How did you find Bob‘s?</td>  <td><select name="find">        <option value = "a">I‘m a regular customer</option>        <option value = "b">TV advertising</option>        <option value = "c">Phone directory</option>        <option value = "d">Word of mouth</option>      </select>  </td></tr><tr>  <td colspan="2" align="center"><input type="submit" value="Submit Order" /></td></tr></table></form>

<form> 標籤用於為使用者輸入建立 HTML 表單。表單能夠包含 input 元素,比如文字欄位、複選框、單選框、提交按鈕等等。表單用於向伺服器傳輸資料。

<input> 標籤用於搜集使用者資訊。根據不同的 type 屬性值,輸入欄位擁有很多種形式。輸入欄位可以是文字欄位、複選框、掩碼後的文本控制項、選項按鈕、按鈕等等。

<table border="0"><tr>    <td...>xxx</td>    <td...>xxx</td></tr><tr>...</tr>...</table>

table定義表格,tr 元素定義表格行,th 元素定義表頭,td 元素定義表格單元。

HTML&PHP學習筆記(1)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.