Today I want to summarize several very useful HTML tags, which are often used in development. People who are not familiar with them may not know them very well. They are: Copy code The code is as follows:readonly, disabled, autocomplete readonly means that the value of this field cannot be modified. It can only be used with type="text". It can be copied, selected, and receive focus. The background will receive the value. Copy code The code is as follows:<input type="text" name="www.xxx" readonly="readonly" /> disabled means the input element is disabled. It cannot be edited, copied, selected, or receive focus. The background will not receive the value. Copy code The code is as follows:<input type="text" name="www.xxx.com" disabled="disabled" /> You can also block the input method through CSS: <input style="ime-mode: disabled"> Finally, let me introduce a commonly used tag. The browser usually records the input box, so when you enter, you often drop down a lot of content, as shown below: If you want to remove it, it is best to add autocomplete="off", the usage is as follows: autocomplete="off" Copy code The code is as follows:<input type="text" autocomplete="off" id="number"/> |
<<: UCenter Home site adds statistics code
>>: Solve the problem of Navicat for MySQL reporting 2005 error when connecting to MySQL
This is what happened. Today I was playing with G...
In many cases, large and medium-sized websites wi...
Inserting Data insert into table name (column nam...
List of HTML tags mark type Name or meaning effec...
Table of contents Preface Check and uninstall Ope...
Table of contents Preface 【undo log】 【redo log】 【...
Introduction In a production environment, in orde...
Set the background image for the table header. Yo...
Table of contents infer Case: Deepen your underst...
Recently, due to work needs, I need to format num...
In the previous article, I introduced the basic k...
Overview It is usually not what we want to presen...
<frameset></frameset> is familiar to e...
After configuring the tabBar in the WeChat applet...
Prepare a CentOS6 installation disk (any version)...