Today, I want to summarize several useful html tags that are often used in development. unfamiliar people may not be quite clear about them. readonly, disabled, and autocompletereadonly indicate that the values of this field cannot be modified, only
Today, I would like to summarize several useful html tags that are often used in development. unfamiliar people may not be quite clear about them. They are:
Readonly, disabled, autocomplete
Readonly indicates that the value of this field cannot be modified. It can only be used with type = "text". It can be copied, selected, and can receive the focus. The background will receive the passed value.
Readonly = "readonly"/>
Disabled indicates that the input element is disabled, cannot be edited, cannot be copied, cannot be selected, cannot receive focus, and no value is received in the background
Disabled = "disabled"/>
In addition, you can use css to shield the input method:
Finally, we will introduce a common tag. the browser usually records the input box, so you will often pull down a lot of content when entering the tag, such:
If you want to remove it, you 'd better add autocomplete = "off". The usage is as follows: autocomplete = "off"
Autocomplete = "off" id = "number"/>