HTML common tags (form labels)

Source: Internet
Author: User

One, form label

The form label is a very important tag in the HTML tag. Often used for registration, login pages.

<form action= "Submit Address" method= "Submission Method" >

</form>

Note: There are two values for method. Get (default value) and post. Get data security is not post high. The speed of the post is not get fast.

Elements commonly used in form:

1. Text box

<input type= "Text"/>

2. Password box

<input type= "Password"/>

3. Drop-down menu

<select name= "" multiple= "multiple" >
<option value= "" > Please select Province </option>
<option value= "1" > Jiangsu </option>
<option value= "2" > Henan </option>
<option value= "3" > Hebei </option>

</select>

Note: multiple= "multiple" multiple selection

4. Radio button

<input type= "Radio" name= "Sex" id= "male"/>
<label for= "Male" > Men </label>
<input type= "Radio" name= "Sex" id= "female"/>
<label for= "female" > Women </label>

Note: checked= "Checked" is selected by default

5. check box

<input type= "checkbox" value= "Apple"/> Apple
<input type= "checkbox" value= "banana"/> Banana
<input type= "checkbox" value= "Pineapple"/> Pineapple

6. Uploading Images

<input type= "File"/>

7, Multi-line text box

<textarea cols= "rows=" style= "Resize:none;" >
</textarea>

Note: Cols indicates that the width of the text box rows represents the height of the text box Resize:none, prohibit dragging, and the text box is fixed size.

8. Button

<input type= "reset"/> reset button
<input type= "Submit"/> Submit button
<input type= "button" value= "normal button"/> Normal button
<input type= "image" src= "image/btn.jpg"/> image button

Note: Resetting and submitting must be in the form to be useful

9. <fieldset></fieldset> Control Group Label

<fieldset>    <legend>health information</legend>    Height: <input type= "text"/>    weight: <input type= " Text "/>  </fieldset>

10、 网页嵌套 <iframe src="http://www.baidu.com"></iframe>

二、marquee 标签(不常用)

<marquee></marquee>
behavior属性: alternate、scroll、slide,分别表示文字来回滚动、单方向循环滚动、只滚动一次。
direction属性: 属性的参数值有down、left、right、up共四个单一可选值,分别代表滚动方向向下、向左、向右、向上。
hspace和vspace属性: 这两个属性决定滚动矩形区域距周围的空白区域。
scrollamount: 滚动速度。
scrolldelay:滚动停顿的时间。
loop: 表示循环的次数,值是正整数,默认为无限循环。

HTML common tags (form labels)

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.