1. Move and select form text input:
In the text input column, if a prompt is added, visitors usually need to select and delete it with the mouse, and then enter useful information. In fact, you only need to add onmouseover = "This. Focus ()" onfocus = "This. Select ()" Code In <textarea>, everything becomes much simpler, for example:
Copy code The Code is as follows: <textarea name = textarea wrap = Virtual rows = 2 Cols = 22 onmouseover = "this. focus () "onfocus =" this. select () "> input English .. </textarea>
Similarly, you can add the code to <input>.
2. Click Delete in the input unit of the form:
This column is similar to the preceding one. It only changes slightly with the mouse. You need to click it instead of overwrite it with the mouse. For example:
<Input type = text name = "Address" size = 19 value = "Enter, e-mail..." onfocus = "This. value ='' ">
After you click "input unit", the system prompts that the information will be deleted, which is convenient.
3. Border settings of the form input unit:
Changing the border of a traditional form unit will make your home page quite colorful. For example:
<Input type = radio name = action value = subscribe checked style = "border-bottom: dashed 1px; border-left: dashed 1px; border-Right: dashed 1px; border-top: dashed 1px; Background-color: # fef5c8 ">
Here, "style = ***" is set for left and right upper and lower and background color. It applies to other units. Please try it yourself.
4. Text settings of the form input unit:
The font of a unit in a form can be modified, for example:
<Input type = text name = "Address" size = 19 value = "Enter, e-mail... "Style = font-family:" verdana "; font-size: 10px>
"Style = ***" indicates the font and font size.
5. Modify the form attribute to the pop-up window:
After most forms are activated, they are opened on the current page, affecting normal browsing. It is better to modify it, for example:
<Form method = post action = URL target = _ blank>
"Target = _ blank" is displayed in the pop-up window.