HTML标签天天练7--表单<form>[text][password][radio]

<wbr style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"><span style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">别小看了这一个标签,里面包含着丰富的内容,是为了让浏览者能输入用户名及更多信息而定义的!</span> <div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"> 从这篇文章起,将分几次讲述<span style="color:#ED1C24; word-wrap:normal; word-break:normal">form</span>里面的各种标签及属性,让大家一目了然:</div> <div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"> <span style="color:#ED1C24; word-wrap:normal; word-break:normal">&lt;form&gt;意为表单</span>,让用户输入单据里的项目信息,以便于提交给网站。如<span style="word-wrap:normal; word-break:normal">(复制到DW尝试)</span>:</div> <div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"> <div> <div> <textarea readonly name="code" class="html">&lt;html&gt; &lt;body&gt; &lt;form&gt; 用户:&lt;input type="text" name="user"&gt; &lt;br /&gt; 密码:&lt;input type="password" name="password"&gt; &lt;/form&gt; &lt;p&gt;type代表文本类型,当在密码框中输入字符时,浏览器会用项目符号来代替字符!&lt;/p&gt; &lt;/body&gt; &lt;/html&gt;</textarea><br> ——另一种用法就是<span style="color:rgb(237,28,36); word-wrap:normal; word-break:normal">[单选框]</span>。如以下代码(复制到DW尝试):</div> </div> </div> <div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"> <div> <textarea readonly name="code" class="html">&lt;html&gt; &lt;body&gt; &lt;p&gt;性别:&lt;/p&gt; &lt;form&gt; 男性:&lt;input type="radio" checked="checked" name="Sex" value="male" /&gt; &lt;br /&gt; 女性:&lt;input type="radio" name="Sex" value="female" /&gt; &lt;/form&gt; &lt;p&gt;点击某个单选按钮时,会被选中状态,而其他按钮变为非选中状态!&lt;/p&gt; &lt;/body&gt; &lt;/html&gt;</textarea><br> ——下一篇将讲述&lt;form&gt;标签的另几种用法!</div> </div> </wbr>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值