HTML/CSS基礎教程 六

來源:互聯網
上載者:User

標籤:style   blog   http   java   color   get   

 

表單

包含表單元素的地區, 表單元素是允許使用者在表單中(文字框, 下拉式清單, 單選框, 複選框等)輸入資訊的元素, 使用<form>標籤定義.

文本域與密碼域
<form>Username:<input type="text" name="firstname"><br />Password:<input type="password" name="lastname"></form>

密碼會用點代替.

下拉式清單
<form><select name="cars"><option value="volvo">Volvo</option><option value="saab">Saab</option><option value="fiat">Fiat</option><option value="audi">Audi</option></select></form>
選項按鈕
<form><input type="radio" name="sex" value="male" /> Male<br /><input type="radio" name="sex" value="female" /> Female</form>
複選框
<form><input type="checkbox" name="bike" />I have a bike<br /><input type="checkbox" name="car" />I have a car</form>
動作屬性和確認按鈕

當使用者單擊確認按鈕時, 表單內容會被傳送到另一個檔案, 表單的動作屬性定義了目的檔案的檔案名稱,這個檔案會對輸入的資料進行處理:

<form name="input" action="html_form_action.asp" method="get">Username: <input type="text" name="user" /><input type="submit" value="Submit" /></form>
架構

通過架構, 可以在一個視窗下顯示不止一個頁面.

垂直架構
<html><frameset cols="25%,50%,25%">  <frame src="/example/html/frame_a.html">  <frame src="/example/html/frame_b.html">  <frame src="/example/html/frame_c.html"></frameset></html>
水平架構
<html><frameset rows="25%,50%,25%">  <frame src="/example/html/frame_a.html">  <frame src="/example/html/frame_b.html">  <frame src="/example/html/frame_c.html"></frameset></html>

可以混合使用這倆個架構.

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.