国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

HTML Basics Tutorial: Complete Form Buttons

There are four main types of buttons in HTML forms

  • Submit button: <input type="submit" value=" Submit form" />

  • Reset button: <input type="reset" value="Refill" />

  • Image button: <input type="image" src="images/btn02.png" /> //The function is to submit the form, which is the same as the submit button

  • Ordinary button :<input type="button" onclick="javascript:window.close()" value="Close window" />

  • ##Ordinary button itself It does not have any functions and generally needs to be used in conjunction with JS programs to achieve corresponding functions.

  • About JS, we will talk about it later

Example:

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>用戶注冊</title>
    </head>
    <body>
        <font size="5" color="red">歡迎注冊php.cn</font>
        <form name="user" method="get" action="" >
            用戶名:<input type="text" name="username"/>
            <br/>
            密碼:<input type="password" name="userpwd"/>
            <br/>
            性別:<input type="radio" name="sex" value="男" checked=checked>男
            <input type="radio" name="sex" value="女">女
            <br/>
            愛好:<input type="checkbox" name="hobby" value="運動">運動
            <input type="checkbox" name="hobby" value="看電影">看電影
            <input type="checkbox" name="hobby" value="編程" checked="checked">編程
            <input type="checkbox" name="hobby" value="宅著">宅著
            <br/>所在地:
            <select name="city">
                <option value="北京">北京<option>
                <option value="上海">上海<option>
                <option value="杭州" selected="selected">杭州<option>
                <option value="南京">南京<option>
                <option value="合肥">合肥<option>
            </select>
            <br/>個性介紹:<br/><textarea name=" introduction" cols="30" rows="4"></textarea>
            <br/><input type="submit" value="提交信息"/>
            <input type="reset" value="重填一次"/>
            <input type="image" src="http://photocdn.sohu.com/20160107/mp52903269_1452135104978_1_th.png" width="70"/>
            <input type="button" onclick="javascript:window.close()" value="關(guān)閉窗口"/>
        </form>
    </body>
Continuing Learning
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>用戶注冊</title> </head> <body> <font size="5" color="red">歡迎注冊php.cn</font> <form name="user" method="get" action="" > 用戶名:<input type="text" name="username"/> <br/> 密碼:<input type="password" name="userpwd"/> <br/> 性別:<input type="radio" name="sex" value="男" checked=checked>男 <input type="radio" name="sex" value="女">女 <br/> 愛好:<input type="checkbox" name="hobby" value="運動">運動 <input type="checkbox" name="hobby" value="看電影">看電影 <input type="checkbox" name="hobby" value="編程" checked="checked">編程 <input type="checkbox" name="hobby" value="宅著">宅著 <br/>所在地: <select name="city"> <option value="北京">北京<option> <option value="上海">上海<option> <option value="杭州" selected="selected">杭州<option> <option value="南京">南京<option> <option value="合肥">合肥<option> </select> <br/>個性介紹:<br/><textarea name=" introduction" cols="30" rows="4"></textarea> <br/><input type="submit" value="提交信息"/> <input type="reset" value="重填一次"/> <input type="image" src="http://photocdn.sohu.com/20160107/mp52903269_1452135104978_1_th.png" width="70"/> <input type="button" onclick=javascript:window.close()" value="關(guān)閉窗口"/> </form> </body>
submitReset Code