html的代码是是这个:
just type in your name (and click the submit) to enter the contest:
firstname:
lastname:
<p>Just type in your name (and click the Submit) to enter the contest:<br />Firstname: <input type="text" name="firstname" value=""/><br />Lastname:<input type="text" name="lastnmae"value=""/><br /><input type="Submit" /><br/>hot<input type="radio" name="hotornot" value="hot" /><br/>not<input type="radio" name="hotornot" value="not" /><br/>salt<input type="checkbox" name="spice" value="salt" /><br/>pepper<input type="checkbox" name="spice" value="pepper" /><br/>garlic<input type="checkbox" name="spice" value="garlic" /><br/></p><p><span>立即学习</span>“<a href="https://pan.quark.cn/s/cb6835dc7db1" style="text-decoration: underline !important; color: blue; font-weight: bolder;" rel="nofollow" target="_blank">前端免费学习笔记(深入)</a>”;</p>
checkbox 复选框的 value 属性值不会显示在用户界面中,是传后台的,你想显示
在外 前后加值
value属性内容是传递值时使用的,不能直接在界面中显示
<input type="radio" name="hotornot" value="hot" >hot</input>
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号