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

HTML Basics Tutorial: Nesting of Forms and Tables

The registration page created before, the alignment of several elements is chaotic

16.png

We can use the nesting of tables and forms to make the page more regular

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>用戶注冊(cè)</title>
    </head>
    <body>
        <font size="5" color="red">歡迎注冊(cè)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>

It can be seen that it is more complicated to use table to create such a regular interface, and it will not be used frequently in the future. It is more likely to be implemented using DIV+CSS that will be learned later

Continuing Learning
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>用戶注冊(cè)</title> </head> <body> <font size="5" color="red">歡迎注冊(cè)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>
submitReset Code