Acquaintance HTML_ form

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <form action="" method="">
            <table width="600px" border="1px" cellspacing="0" cellpadding="">
                <tbody>
                    <tr height="40px">
                        <td rowspan="4" align="center">总体信息</td >
                        <td colspan="2"></td>
                    </tr>
                    <tr height="40px">
                        <td align="center">用户名</td>
                        <td><input type="text" name="" id="" value="" /></td>                       </tr>
                    <tr height="40px">
                        <td align="center">密码</td>
                        <td><input type="password" name="" id="" value="" />
                        </td>
                    </tr>
                    <tr height="40px">
                        <td colspan="2"><input type="submit" name="" id="" value="提交" />
                            <input type="button" name="" id="" value="重置" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </body>
</html>
  1. form must have action property, which is the address submitted
  2. All data required to submit, input must have a name attribute
  3. input text button, use value property represents
  4. input must be placed inside the form tag to submit
  5. type of type
    • text: text entry box
    • password: password input box
    • radio: radio button
    • checkbox: check box
    • button: push button
    • reset: reset button
    • file: file selection box
  6. get the difference between the request and post requests
    • get usually retrieves data
    • post usually expressed submit data
    • Data get sent are written in the address bar, visible to the user
    • Transmitting user data is not visible post
    • can not get a request to submit large amounts of data, but you can post, so do not mix

Guess you like

Origin www.cnblogs.com/SSPOFA/p/11728889.html