html form應(yīng)用包括復(fù)選框單選按鈕的使用

字號:


    包括復(fù)選框,單選按鈕的使用
    代碼如下:
    <!doctype html public -//w3c//dtd xhtml 1.0 transitional//en >
    <html xmlns=>
    <head>
    <meta http-equiv=content-type content=text/html; charset=gb2312 />
    <title>登錄界面</title>
    </head>
    <body>
    <h1>
    <strong>登錄界面</strong>
    </h1>
    <form name=f1 id=f1>
    <table border=0 width=457 height=280 cellspacing=1 cellpadding=1>
    <tbody><tr>
    <td width=44>login:</td>
    <td width=406><input type=text name=login id=login size=></input></td>
    </tr>
    <tr><td colspan=3 align=left>專業(yè):
    <input type=radio name=type value=computer checked=>計算機(jī)應(yīng)用</input>
    <input type=radio name=type value=software>軟件工程</input>
    <input type=radio name=type value=auto>自動化</input> </td>
    </tr>
    <tr><td colspan=4 align=left>課程:
    <input type=checkbox value=>計算機(jī)網(wǎng)絡(luò)</input>
    <input type=checkbox value=>數(shù)據(jù)庫原理</input>
    <input type=checkbox value=>web程序設(shè)計</input>
    <input type=checkbox value=>java編程</input></td>
    </tr>
    </tbody></table>
    </form>
    </body>
    </html>