Foreground HTML Base tab 2 form, hyperlink css four styles 7.7

Source: Internet
Author: User

One, html-form part

1. Button:

<input type= "button" >

2. Text box:
<input type= "Text" >

3. Password:
<input type= "Password" >

 4. Radio:
   <input type= "Radio" id= "male" name= "Sex" checked= "checked" >

<labelfor = "male" > Male </label>
<input type= "Radio" id= "female" name= "Sex" >

<label for= "female" > Women </label>

5. check box:
<input type= "checkbox" > Red <input type= "checkbox" > Green

6. Drop-down menu:
<select>
<option>--Please select--</option>
<option> singing </option>
<option> Dancing </option>
</select>

* If you want to become a check, add Muiltiple. The user uses CTRL to implement multiple selections.

<select name= "Fruit" multiple= "multiple">

You can also change the size of the drop-down box (Select) by using a Size property

7. Upload CONTROLS:
<input type= "File" >

8, multi-line input box:
<textarea maxleng= "Limit Words" cols= "width" rows= "height" ></textarea>

9. Reset button:
<input type= "Reset" > [only works on the form form in which it is located]

10. Submit button:
<input type= "Submit" > [only works on form form where it is located]

11. Picture button:

<input type= "image" >

12. Hidden fields:

<input type= "hidden" >


Second, CSS style part

1, CSS style of three commonly used wording:
First inline style: directly in the label, add <p style= "color:red" ></p>
Second inline: In head, add <style> p{color:red;} </style>
The third type of link: Create a new CSS file write style outside, introduce HTML:
<link rel= "stylesheet" type= "text/css" href= "relative path. css" >

Third, the link part

1. Empty link: <a href= "JavaScript:;" ></a>

2. Link Open window:

_blank opens in a new window
_parent Open in parent window
_self Open in Current window
_top return information displayed in the top-level browser window

Foreground HTML Base tab 2 form, hyperlink css four styles 7.7

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.