close

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Form</title>

    <meta http-equiv="Content-type" content="text/html" charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
    <div>
        <form>
            <input type="text" name="">
            <!-- 定義輸入框的類型 text屬於文字輸入框 -->
            <br>

            <input type="email" name="" placeholder="Pleace input your E-mail"> 
            <!-- placeholder是提示語 -->
            <br>

            <textarea></textarea>
            <!-- 多行文字輸入框 -->
            <br>

            <select>
                <option>請選擇...</option>
                <option>第一項</option>
                <option>第二項</option>
                <option>第三項</option>
            </select> 
            <!-- 單選選擇 -->
            <br>

            <input type="radio" name="color">Red
            <input type="radio" name="color">Blue
            <!-- radio單選勾選 -->
            <!-- name設定相同時,屬於相同群組,只能單選 -->
            <br>

            <input type="checkbox" name="dog">Dog
            <input type="checkbox" name="cat">Cat
            <input type="checkbox" name="dack">Dack
            <input type="checkbox" name="cow">Cow
            <!-- checkbox複選勾選 -->
            <!-- 複選勾選不能設定相同name -->
            <br>

            <input type="submit" name="" value="Submit"> 
            <!-- 提交按鈕 -->
            <!-- value的值出現按鈕上 -->
            <br>
        </form>    
    </div>
    
</body>
</html>

 

FireShot Capture 013 - Form - file____C__Users_user_Desktop_Front%20end%20practice_HTML_form.html.jpg

 

 

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 A&B 的頭像
    A&B

    網頁前端新手上路辛酸史

    A&B 發表在 痞客邦 留言(0) 人氣()