Web Form Design Examples Tips Five

Source: Internet
Author: User
Tip: You can modify some of the code before running

<p>1, form text input Mobile selection: In the text input column, if prompted, visitors often have to use the mouse to select the Delete, and then enter useful information. In fact, just add onmouseover= "This.focus ()" onfocus= "This.select ()" Code to <textarea>, everything will be much simpler, such as:</p> <div class= "Htmlcode" ><textarea name=textarea wrap=virtual rows=2 cols=22  Onmouseover= "This.focus ()"  onfocus= "This.select ()" > Please fill in your name </textarea> </div> <p> Similarly, you can add code to <input>. </p> <p>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 overlay. such as:</p> <div class= "Htmlcode" ><input type=text name= "Address"  size=19 value= " Please fill in your mailbox "onfocus=" This.value= ' "> </div> <p> click the input unit, the prompt information will be deleted, is not very convenient. </p> <p>3, form input cell border settings: Change the traditional table-only element border, will make your homepage a lot of colour. such as:</p> <div class= "Htmlcode" ><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 "> </div> <p> where" style=*** "is set for left and right up and down and background colors, Applicable to other units. </p> <p>4, form input Unit text settings: The font of cells in the form can be modified, such as: </p> <div class= "Htmlcode" ><input  Type=text name= "Address"  size=19 value= "please fill in your name"  style=font-family: "Verdana"; font-size :10px ></div> <p> where "style=***" is set for font and word size. </p> <p>5, modifying form properties to pop-up windows: Most forms are activated and open on the current page, affecting normal browsing. Why not change it, such as:</p> <div class= "Htmlcode" ><form method=POST action=url target=_blank> </div> <p> where "Target=_blank" is open for control in the pop-up window. </p>
Tip: You can modify some of the code before running

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.