HTML常用的表单创建
2015-08-15 13:20
656 查看
常用表单创建代码:
运行图片:
<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/html"> <head> <meta charset="UTF-8"> <title>表单</title> </head> <br> <p> 用户名: <input type="text"> </p> <p> 密码: <input type="password"> </p> 你喜欢的水果有: <br/> 苹果 <input type="checkbox"> <br/> 香蕉 <input type="checkbox"> <br/> 西瓜 <input type="checkbox"> <br/> 请选择你的性别:<br/> 男<input type="radio" name="sex"> <br/> 女<input type="radio" name="sex"> <br/> <select> <option>www.hao123.com</option> <option>www.baidu.com</option> <option>www.qq.com</option> </select> <br/> <input type="button" value="按钮"> <input type="button" value="确定"> <br/> <textarea cols="20" rows="20"> 请填写你的个人信息 </textarea> </form> </body> </html>
运行图片: