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

Single-line text fields and password fields in HTML basic tutorial forms

Single line text field

Syntax format:

<input type = “text” attribute = “ Value" />

Common attributes

  • name: the name of the text box. The naming rules are: it can contain letters, numbers, and underscores, and can only start with a letter.

  • type: Type of form element.

  • value: The value in the text box.

  • size: The length of the text box, in "characters".

  • maxLength: The maximum number of characters that can be entered. If it exceeds the number, it cannot be entered.

  • readonly: Read-only attribute. It can be selected but cannot be modified. For example: readonly = “readonly”

  • disabled: Disabled attribute. It cannot be selected or modified. For example: disabled = “disabled”

##Example:

<input type="text" name="username" />


Single line password field

##Syntax format:

< input type = “password” attribute = “value” />

Common attributes

    name: the name of the password box. The naming rules are: it can contain letters, numbers, and underscores, and can only start with a letter.
  • type: Type of form element.
  • value: The value in the element.

  • size: The length of the element, in "characters".
  • maxLength: The maximum number of characters that can be entered. If it exceeds the number, it cannot be entered.
  • readonly: Read-only attribute. It can be selected but cannot be modified. For example: readonly = “readonly”
  • disabled: Disabled attribute. It cannot be selected or modified. For example: disabled = “disabled”


Example:

<!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="" >
            用戶名:<input type="text" name="username" value="請(qǐng)輸入您的用戶名" maxLength="6"/>
            <br/>
            密碼:<input type="password" name="userpwd" maxLength="6"/>
            <br/>
            <input type="submit" value="提交信息"/>
        </form>
    </body>
</html>

You can also enter other attributes to view the results

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="" > 用戶名:<input type="text" name="username" value="請(qǐng)輸入您的用戶名" maxLength="6"/> <br/> 密碼:<input type="password" name="userpwd" maxLength="6"/> <br/> <input type="submit" value="提交信息"/> </form> </body> </html>
submitReset Code