查看: 800|回复: 0

[HTML代码] html2练习

发表于 2018-1-28 10:07:00
  1. <html>
  2. <head>
  3. <link rel="stylesheet" href="web2.css">
  4. <body>
  5. <h2>新用户注册</h2>
  6. <form action= "web2.html" method="get">
  7. <p>
  8. <label for = "fn">姓名</label>
  9. <input id = 'fn' type="text" name="" placeholder="your name" required="">
  10. </p>
  11. <p>
  12. <label for="pass">密码</label>
  13. <input type="password" name="" placeholder = "your password" value="">
  14. </p>
  15. <p>
  16. <label for="pass">确认密码</label>
  17. <input type="password" name="" placeholder = "again your password" value="">
  18. </p>
  19. <p>性别:<br>
  20. <label for="n" >男</label>
  21. <input id = "n" type="radio" name="sex" value = "male">
  22. <label for="n" >女</label>
  23. <input id = "v"type="radio" name="sex" value = "female"><br>
  24. </p>
  25. <p>
  26. <label for="mail">邮箱:</label><br>
  27. <input id = "mail" type="email" name="" value = "" placeholder= "example@example.com"><br>
  28. </p>
  29. <p>
  30. 请选择支付方式:<br>
  31. <select name= "payment">
  32. <option value = "Ali">支付宝</option>
  33. <option value = "Ali">微信</option>
  34. <option value = "Ali">信用卡</option>
  35. </select>
  36. </p>
  37. <p>
  38. <input type="submit" name="" value = "注册">
  39. </p>
  40. </form>
  41. </body>
  42. </head>
  43. </html>
  44. ##############CSS FLIE##################
  45. body{
  46. background-color:yellow;
复制代码

}
p{
background-colorrange;
border-color:blue;
border-width:2px;
border-style:double;
}

html2练习




上一篇:html1练习
下一篇:HTML登录页面
回复

使用道具 举报