作业1-课程表

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>作业表格</title>
  8. <style>
  9. tr {
  10. text-align: center;
  11. }
  12. </style>
  13. </head>
  14. <body>
  15. <table
  16. border="1px"
  17. cellspacing="0"
  18. width="30%"
  19. align="center"
  20. cellpadding="5"
  21. >
  22. <caption style="font-weight: bolder; margin-bottom: 1em; font: size 2px">
  23. 作业-课程表
  24. </caption>
  25. <tr>
  26. <th>时间</th>
  27. <th>星期一</th>
  28. <th>星期二</th>
  29. <th>星期三</th>
  30. <th>星期四</th>
  31. <th>星期五</th>
  32. </tr>
  33. <tr>
  34. <td
  35. rowspan="3"
  36. bgcolor="lightblue"
  37. style="font-weight: bolder; font: size 2px"
  38. >
  39. 上午
  40. </td>
  41. <td>语文</td>
  42. <td>数学</td>
  43. <td>音乐</td>
  44. <td>体育</td>
  45. <td>英语</td>
  46. </tr>
  47. <tr>
  48. <!-- <td>上午</td> -->
  49. <td>语文</td>
  50. <td>数学</td>
  51. <td>音乐</td>
  52. <td>体育</td>
  53. <td>英语</td>
  54. </tr>
  55. <tr>
  56. <!-- <td>上午</td> -->
  57. <td>语文</td>
  58. <td>数学</td>
  59. <td>音乐</td>
  60. <td>体育</td>
  61. <td>英语</td>
  62. </tr>
  63. <tr>
  64. <td colspan="6" bgcolor="lightgrey">中午休息</td>
  65. <!-- <td></td>
  66. <td></td>
  67. <td></td>
  68. <td></td>
  69. <td></td> -->
  70. </tr>
  71. <tr>
  72. <td
  73. rowspan="2"
  74. bgcolor="lightblue"
  75. style="font-weight: bolder; font: size 2px"
  76. >
  77. 下午
  78. </td>
  79. <td>语文</td>
  80. <td>数学</td>
  81. <td>音乐</td>
  82. <td>体育</td>
  83. <td>英语</td>
  84. </tr>
  85. <tr>
  86. <!-- <td>下午</td> -->
  87. <td>语文</td>
  88. <td>数学</td>
  89. <td>音乐</td>
  90. <td>体育</td>
  91. <td>英语</td>
  92. </tr>
  93. <tr>
  94. <td bgcolor="lightgreen">备注:</td>
  95. <td colspan="5" bgcolor="lightgreen">
  96. 每天下午16:00-17:00,写完作业再回家
  97. </td>
  98. <!-- <td></td>
  99. <td></td>
  100. <td></td>
  101. <td></td> -->
  102. </tr>
  103. </table>
  104. </body>
  105. </html>

效果图:

作业2-注册页面

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>注册页面</title>
  8. </head>
  9. <body >
  10. <form action="" style:"display:grid; gap:0.5em" method="POST" align="center">
  11. <!-- 文本输入框 -->
  12. <div><label for="username">账号:</label>
  13. <input type="text" id="username" autofocus required placeholder="必须是6-8位"/> </div>
  14. <div>
  15. <label for="password">密码:<input type="password" name="" id="password" autofocus required placeholder="必须是字母+数字"/>
  16. </label><br>
  17. <label for="password">确认密码: <input type="password" name="" id="confirmPassword" autofocus required placeholder="必须是字母+数字"/>
  18. </label>
  19. </div>
  20. <div>
  21. <label for="email">邮箱:</label>
  22. <input type="email" name="email" id="email" placeholder="xxx@qq.com">
  23. <div>
  24. <!-- 单选框 for默认值绑定id -->
  25. <label for="secret">性别</label>
  26. <!-- id和for绑定 -->
  27. <input type="radio" name="gender" value="male" id="male"><label for="male"></label>
  28. <input type="radio" name="gender" value="female" id="female"><label for="female"></label>
  29. <input type="radio" name="gender" value="secret" id="secret" checked><label for="secret">保密</label>
  30. </div>
  31. <div>
  32. <!-- 复选框 -->
  33. <!-- 因为允许同时提交多个值,所以name属性要写成数组格式 -->
  34. <label for="">爱好</label>
  35. <input type="checkbox" name="hobby[]" id="programmer" checked><label for="programmer">PHP</label>
  36. <input type="checkbox" name="hobby[]" id="game"><label for="game">游戏</label>
  37. <input type="checkbox" name="hobby[]" id="trave"><label for="trave">旅游</label>
  38. <input type="checkbox" name="hobby[]" id="shot"><label for="shot">摄影</label>
  39. </div>
  40. <div>
  41. <label for="">会员等级:</label>
  42. <select name="level" id="">
  43. <option value="1">铜牌会员</option>
  44. <option value="2">银牌会员</option>
  45. <option value="3" selected>金牌会员</option>
  46. <option value="4">钻石会员</option>
  47. </select>
  48. </div>
  49. <!-- datalist 输入框+下拉列表-->
  50. <div>
  51. <label for="">关键字:</label>
  52. <!-- list和datalist的id进行绑定 -->
  53. <input type="search" name="search" id="" list="my-key">
  54. <datalist id="my-key">
  55. <option value="html"></option>
  56. <option value="css"></option>
  57. <option value="js"></option>
  58. </datalist>
  59. </div>
  60. <div><button type="submit">立即注册</button></div>
  61. </form>
  62. </body>
  63. </html>

更多相关文章

  1. 课程表和用户注册的作业
  2. HTML课时表格
  3. 表格和用户注册
  4. 0319作业
  5. 3.18作业
  6. A小学校课程表和登录表单
  7. 课程表学习代码发布
  8. php 中文网 第十五期——第二课作业
  9. 表格的练习

随机推荐

  1. EventBus 《三》 事件的具体用法及其讲解
  2. Android(安卓)Studio JNI开发
  3. android 逆向 去广告
  4. android mp3播放器学习之预备知识1:activi
  5. Android设置TextView的行间距、行高。
  6. Android再学习-20141018-布局-进度条
  7. Android起步--简单的乘法
  8. Android学习指南之三十七:Android传感器编
  9. Android应用开发相关下载资源(2014/12/14
  10. Android如何设置TextView的行间距、行高