Five tips to familiarize yourself with common form formats

Source: Internet
Author: User
Tags add mail
Skills Presumably everyone has used the form on the page, if you are not satisfied with the monotonous form control unit, you may wish to look at the following tips:

1, form text input Mobile selection: In the text input column, if added to the prompts, visitors will often use the mouse to select the Delete, and then enter useful information. In fact, as long as you add code to <textarea>, everything will be much simpler, such as:
<textarea name=textarea wrap=virtual rows=2 cols=22 中文版. </textarea>
Similarly, you can add code to <input>.

2, Form input Unit Click Delete: This column is similar to the function, just use the mouse slightly changes, you need to click rather than as long as the mouse cover. Such as:
<input type=text name= "Address" size=19 value= "Enter,e-mail ..." >
Click the input unit, the prompt information will be deleted, is not very convenient.

3, form input cell border settings: Change the traditional table-only element border, will make your homepage a lot of colour. Such as:
<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 ">
where "style=***" for the left and right up and background color settings, for other units, please try the reader himself.

4, form input Unit text settings: The form of cells in the font can be modified, such as:
<input type=text name= "Address" size=19 value= "Enter,e-mail" style=font-family: "Verdana" font-size:10px >
where "style=***" is the font and Word size settings.

5, modify the form properties for pop-up windows: Most forms are activated, will open in the current page, affecting normal browsing. Why not change it, such as:
<form method=post action=url target=_blank>
where "Target=_blank" is opened for control in the pop-up window.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.