在我们web前端的学习中 input表单的用途十分广泛,下面让我为大家简单介绍它吧
<input type=" text" placeholder=" ">
placeholder是提示性文本,
我们可以看到一下网页的搜索框里面有请输入这几个字 这个就是placeholder的作用
<input type="button">
这个是按钮,我们在网页里看到的按钮就是这样制作的
<input type="file">
这个用于文件上传,可以选择自己需要上传的文件
<input type="reset">
这个是表单重置按钮
<input type="submit">
这个是表单提交按钮
<input type="radio">
这个是单选按钮,用来在网页中给用户做选择用的
<input type="checkbox">
这个是多选框,在网页中可以给用户提供更多的选择
<input type="password">
这个是密码框,当我们在这个框里输东西的时候,它不会显示内容
会显示小点点,这样就保护了我们的隐私
<select name="">
<option value="">列表1</option>
<option value="">列表2</option>
<option value="selected">列表3</option>
</select>
这个就是下拉列表了,selected是默认选中的意思,现在我们写的就是默认选中列表3了