国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

HTML基礎(chǔ)教程之表單與表格的嵌套

之前制作的注冊頁面,幾個元素的對齊是混亂的

16.png

我們可以利用表格和表單的嵌套,使得頁面更加規(guī)則

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>用戶注冊</title>
    </head>
    <body>
        <font size="5" color="red">歡迎注冊php.cn</font>
        <form name="user" method="get" action="" >
            <table>
                <tr>
                    <td>用戶名:</td>
                    <td><input type="text" name="username"/></td>
                </tr>
                <tr>
                <td>密碼:</td>
                <td><input type="password" name="userpwd"/></td>
                </tr>
                <tr>
                <td colspan="2" align="left"><input type="submit" value="提交信息"/></td>
                </tr>
            </table>
        </form>
    </body>
</html>

可以看出,制作這樣的規(guī)整界面使用table比較復(fù)雜,在以后的使用中頻率不高,更多的是使用之后要學(xué)習(xí)的DIV+CSS來實現(xiàn)

繼續(xù)學(xué)習(xí)
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>用戶注冊</title> </head> <body> <font size="5" color="red">歡迎注冊php.cn</font> <form name="user" method="get" action="" > <table> <tr> <td>用戶名:</td> <td><input type="text" name="username"/></td> </tr> <tr> <td>密碼:</td> <td><input type="password" name="userpwd"/></td> </tr> <tr> <td colspan="2" align="left"><input type="submit" value="提交信息"/></td> </tr> </table> </form> </body> </html>
提交重置代碼