Value property specifies the initial value of the input field:
<FORM ACTION => <input Type = Text name = name value = VEVB Wulin.com> </Form>Readonly attribute
Readonly attribute specifies that input fields are read only (not modified):
<FORM ACTION => <input Type = Text Name = name value = VEVB martial arts net Readonly> </Form>
Readonly attributes do not need value. It is equivalent to Readonly = Readonly.
disabled attributeDisabled property specifies that the input field is disabled;
The banned elements are not available and cannot be clicked;
The banned elements will not be submitted.
<FORM ACTION => <input Type = Text name = name value = VEVB martial arts disabled> </form>
Disabled attributes do not require value. It is equivalent to Disabled = Disabled.
SIZE attributeSIZE attribute specifies the size of the input field (with characters):
<FORM ACTION => <input Type = Text name = name value = VEVB Wulin.com size = 40> </form>maxlength attribute
MaxLength attribute specifies the maximum length of the input field:
<FORM ACTION => <input Type = Text name = name value = VEVB martin network MaxLength = 10> </Form>
If the MaxLength property is set, the input control will not accept the characters that exceed the allowable numbers.
This attribute does not provide any feedback. If you need to remind users, JavaScript code must be written.
Note: The input limit is not everything. JavaScript provides many methods to increase illegal input. If you need to restrict the input safely, the recipient (server) must check the restrictions at the same time.
width attributeDefine the width of the input field. (Suitable for Type = Image):
<FORM ACTION => <input Type = Image Name = IMG SRC = xxx.jpg Width = 100> </Form>height attribute
Define the height of the INPUT field. (Suitable for Type = Image):
<FORM ACTION => <input Type = Image name = IMG SRC = xxx.jpg Height = 100> </Form>SRC attribute
Define the URL of the image displayed in the form of a submission button:
<FORM ACTION => <input Type = Image Name = IMG SRC = xxx.jpg Width = 100> </Form>name attribute
Define the name of input element:
<FORM ACTION => <input Type = Image Name = IMG SRC = xxx.jpg Width = 100> </Form>checked attribute
It is stipulated that this INPUT element should be selected when loading for the first time:
<FORM ACTION => <input Type = Radio name = Single selection Check> </form>accept attribute
The type of file submitted by the file is specified:
<FORM ACTION => <input Type = File Name = Upload file Accept = Text/CSS> </Form>
The above is all the contents of this article. I hope the content of this article will help everyone's learning or work ~ If you have any questions, you can leave a message to communicate. Thank you for your support for VEVB Wulin.com!