更新時間:2020-06-10 文章分類:網頁技術課堂

| 
<form action="Test.html" method="get">
    <fieldset>
        <legend>HTML5新增表單元素</legend>
        <table>
            <tr>
                <td>郵箱</td>
                <td><input type="email" name="email"></td>
            </tr>
            <tr>
                <td>地址</td>
                <td><input type="url" name="url"></td>
            </tr>
            <tr>
                <td>日期</td>
                <td><input type="date" name="data"></td>
            </tr>
            <tr>
                <td>時間</td>
                <td><input type="time" name="time"></td>
            </tr>
            <tr>
                <td>月份</td>
                <td><input type="month" name="month"></td>
            </tr>
            <tr>
                <td>星期</td>
                <td><input type="week" name="week"></td>
            </tr>
            <tr>
                <td>滑動條</td>
                <td><input type="range" name="range"></td>
            </tr>
            <tr>
                <td>顏色</td>
                <td><input type="color" name="color"></td>
            </tr>
            <tr>
                <td><input type="submit"></td>
            </tr>
        </table>
    </fieldset>
</form> | 
