Java-Web 用html寫一個簡單的用戶注冊界面


代碼:

<!doctype htpl>
<html>
    <head>
        <meta charset="utf-8" />
        <title>注冊用戶</title>
    </head>
    
    <body>
        <table border="1px" cellpadding="10px" cellspacing="0px"
                style="width: 30%;margin:auto;background:rgb(195,195,195)" 
                bordercolor="red" >
            <caption>注冊用戶</caption>
            <form action="#" method="get">
            
                <tr>
                    <th>用戶名:</th>
                    <td><input type="text" name="username"></th>
                </tr>
                <tr>
                    <th>密碼:</th>
                    <td><input type="password" name="password"></td>
                </tr>
                <tr>
                    <th>確認密碼:</th>
                    <td><input type="password" name="password"></td>
                </tr>
                <tr>
                    <th>昵稱:</th>
                    <td><input type="text" name="username"></td>
                </tr>
                <tr>
                    <th>郵箱:</th>
                    <td><input type="text" name="username"></td>
                </tr>
                <tr>
                    <th>性別:</th>
                    <td>
                        <input type="radio" name="gender" value="man" checked="checked">&nbsp;&nbsp;
                        <input type="radio" name="gender" value="woman"></td>
                </tr>
                <tr>
                    <th>愛好:</th>
                    <td>
                        <input type="checkbox" name="hobby" value="lq" checked="checked">籃球 &nbsp;&nbsp;
                        <input type="checkbox" name="hobby" value="zq">足球&nbsp;&nbsp;
                        <input type="checkbox" name="hobby" value="pq">排球
                    </td>
                </tr>
                <tr>
                    <th>城市:</th>
                    <td>
                        <select>
                            <option value="shanghai">上海
                            <option value="beijing">北京
                            <option value="shenzhen">深圳
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>頭像:</th>
                    <td><input type="file" name="img"></td>
                </tr>
                <tr>
                    <th>驗證碼:</th>
                    <td><input type="text" name="code" id="code"/>
                        <img  id="sCodeImg"  src="xcoj4rsp.bmp" 
                        onclick="return clk_image();" width="65" height="25">
                        <input type="button" value="換一個">
                    </td>
                </tr>
                <tr>
                    <th>個人簡歷:</th>
                    <td><textarea name="profile" rows="3" cols="30">請輸入描述信息!</textarea></td>
                </tr>
                <tr>
                    <th colspan="2">
                        <input type="submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="reset" value="重置">
                    </th>
                </tr>
            </form>
        </table>
    </body>
</html>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM