ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

HTML标签_表单标签_表单项select&textarea和HTML标签_案例1_注册页面

2022-08-01 13:31:18  阅读:106  来源: 互联网

标签:textarea 标签 表单 HTML ----- select


HTML标签_表单标签_表单项select&textarea

  select:下拉列表

    子元素:option,指定的列表项

  textarea:文本域

​     cols:指定列数,每一行有多少个字符

​     rows:默认多少行。

省份:<select name="province">
                <option>-----请选择-----</option>
                <option>北京</option>
                <option>上海</option>
                <option>陕西</option>
            </select><br>
        自我描述:<br>
            <textarea cols="20" rows="5" name="des"></textarea>

 

HTML标签_案例1_注册页面

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>
    <form action="#" method="post">
        <table border="1" align="center" width="500px">
            <tr>
                <td><label for="username">用户名</label></td>
                <td><input type="text" name="username" id="username"></td>
            </tr>
            <tr>
                <td><label for="password">密码</label></td>
                <td><input type="password" name="password" id="password"></td>
            </tr>
            <tr>
                <td><label for="email">Email</label></td>
                <td><input type="email" name="email" id="email"></td>
            </tr>
            <tr>
                <td><label for="name">姓名</label></td>
                <td><input type="text" name="name" id="name"></td>
            </tr>
            <tr>
                <td><label for="tel">手机号</label></td>
                <td><input type="text" name="tel" id="tel"></td>
            </tr>
            <tr>
                <td><label>性别</label></td>
                <td><input type="radio" name="gender" value="male">男
                    <input type="radio" name="gender" value="female">女
                </td>
            </tr>
            <tr>
                <td><label for="birthday">出生日期</label></td>
                <td><input type="date" name="birthday" id="birthday"></td>
            </tr>
            <tr>
                <td><label for="checkcode">验证码</label></td>
                <td><input type="text" name="checkcode" id="checkcode">
                    <img src="img/verify_code.jpg">
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center"><input type="submit" value="注册"></td>
            </tr>
        </table>
    </form>
</body>
</html>

 

搜索

复制

省份:<select name="province">
<option>-----请选择-----</option>
<option>北京</option>
<option>上海</option>
<option>陕西</option>
</select><br>
自我描述:<br>
<textarea cols="20" rows="5" name="des"></textarea>

标签:textarea,标签,表单,HTML,-----,select
来源: https://www.cnblogs.com/pengtianyang/p/16539892.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有