0427-2

1. Form
1. <form></form>
2. action (behavior): point to the jump page
3. method (method): in what form to submit data
4. post: implicit submission get: explicit Submit
5, target: open method
6, _blank: open a new page _self: open its own page

<form action="http://www.baidu.com" method="get" target="_self">

2. Text class
1. Text box: type="text"
2. Password box: type="password" (password password)
3. Hidden field: type="hidden" (hidden: hidden)
4. Text field: <textarea name="" rows="" cols=""></textarea>(area: area)
5. Input box prompt: placeholder

<!--文本类-->
            文本框:<input type="text" name=""  id="" value=""/><br />
            密码框:<input type="password" name="" id="" value="" /><br />
            隐藏框:<input type="hidden" name="" id="" value=""/> <br />
            文本域:<textarea name="" rows="" cols=""></textarea><br />

3. Button class
1. Normal button type="button"
2. Reset button type="reset"
3. Submit button type="submit"
4. Image button type="image"

<!--Button class-->
            <input type="button" name="" id="" value="普通按钮" /><br />
            <input type="reset" name="" id="" value="重置" /><br />
            <input type="submit" name="" id="" value="提交" /><br />
            <input type="image" src="../0426_1_html.png" name="" id="" value="图片按钮" width="100" height="30"  />

Fourth, select the class
1, the radio type="radio" name value should be the same
2, check the type="checkbox"
3, drop down <select><option></option></select> select: select
4, file selection type="file"

<!--Select class-->
            <!--Single Choice-->
            <input type="radio" name="1" id="" value="nan" checked="checked" /><input type="radio" name="1" id="" value="nv" /><!--复选-->
            <input type="checkbox" name="h1" id="" value="" checked="checked"/>山东
            <input type="checkbox" name="h2" id="" value=""/>四川
            <input type="checkbox" name="h3" id="" value=""/>重庆
            <input type="checkbox" name="h4" id="" value=""/>云南
            <!--下啦--><!--默认selected-->
            <select >
                <option value="">撩妹</option>
                <option value="" selected="selected">网恋</option>
                <option value="">奔现</option>
            </select>    
            <br />
            <input type="file"  name="" id="" value=""/>
            <br />

5. Other attributes
1. Read-only readonly="readonly"
2. Unavailable disabled="disabled"
3. Default selection of radio box and checkbox checked="checked"
4. Default selection of drop-down selection selected="selected "-->

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325028270&siteId=291194637