Blogger Information
Blog 6
fans 0
comment 0
visits 4831
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Day3 作业
神一样的男子
Original
806 people have browsed it

链接元素举例:

  1. <a href="https://www.php.cn/" target="_self">点这里跳转web</a><br />
  2. <a href="3html_use2.md" target="_self">点这里查看本地文件</a><br />
  3. <a href="3html_use2.zip">点这里下载文件</a><br />
  4. <a href="3html_use2.zip" download="readme.zip"
  5. >点这里下载并重命名文件名</a
  6. ><br />
  7. <a href="tel:123456">点这里拨打电话</a><br />
  8. <a href="mailto:123456@163.com">点这里发邮件</a><br />
  9. <a href="#anchor">跳转到当前页的锚点</a><br />
  10. <h1 id="anchor" style="margin-top: 1000px;">锚点</h1>

列表元素举例

  1. <h3>无序列表</h3>
  2. <ul>
  3. <li>无序列表1</li>
  4. <li>无序列表2</li>
  5. <li>无序列表3</li>
  6. </ul>
  7. <hr />
  8. <h3>有序列表</h3>
  9. <ol start="0">
  10. <li>有序列表1</li>
  11. <li>有序列表2</li>
  12. <li>有序列表3</li>
  13. </ol>
  14. <hr />
  15. <h3>自定义列表</h3>
  16. <dl>
  17. <dt>HTML</dt>
  18. <dd>超文本标记语言</dd>
  19. <dd>页面是由多个元素组成</dd>
  20. <dt>CSS</dt>
  21. <dd>层叠样式表</dd>
  22. </dl>

表格元素举例:

  1. <table border="1" cellpadding="5" cellspacing="0" width="90%" align="center">
  2. <colgroup bgcolor=lightpink>
  3. <col bgcolor="gray">
  4. <col bgcolor="lightgreen" span="3">
  5. <col>
  6. <col>
  7. <col>
  8. </colgroup>
  9. <caption style="font-size: 2.0rem;margin-bottom: 20px">
  10. 11期学生信息表
  11. </caption>
  12. <thead bgcolor="lightblue">
  13. <tr>
  14. <th>序号</td>
  15. <th>学号</td>
  16. <th>姓名</td>
  17. <th>手机</td>
  18. <th>地址</t>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. <tr>
  23. <td>1</td>
  24. <td>88001</td>
  25. <td>jeven1</td>
  26. <td>18123682836</td>
  27. <td rowspan="3" align="center">广州</td>
  28. </tr>
  29. <tr>
  30. <td>2</td>
  31. <td>88002</td>
  32. <td>jeven2</td>
  33. <td>18123682836</td>
  34. <!-- <td>广州</td> -->
  35. </tr>
  36. <tr>
  37. <td>3</td>
  38. <td>88003</td>
  39. <td>jeven3</td>
  40. <td>18123682836</td>
  41. <!-- <td>广州</td> -->
  42. </tr>
  43. </tbody>
  44. <tbody>
  45. <tr>
  46. <td>4</td>
  47. <td>88004</td>
  48. <td>jeven4</td>
  49. <td>18123682836</td>
  50. <td rowspan="3" align="center">深圳</td>
  51. </tr>
  52. <tr>
  53. <td>5</td>
  54. <td>88005</td>
  55. <td>jeven5</td>
  56. <td>18123682836</td>
  57. <!-- <td>深圳</td> -->
  58. </tr>
  59. <tr>
  60. <td>6</td>
  61. <td>88006</td>
  62. <td>jeven6</td>
  63. <td>18123682836</td>
  64. <!-- <td >深圳</td> -->
  65. </tr>
  66. </tbody>
  67. <tfoot>
  68. <tr bgcolor="wheat">
  69. <td>总人数:</td>
  70. <td colspan="4" align="center">6人</td>
  71. </tr>
  72. </tfoot>
  73. </table>

表单元素举例:

  1. <h3>用户注册</h3>
  2. <form action="register.php">
  3. <section>
  4. <label for="username">用户名:</label>
  5. <input
  6. type="text"
  7. id="username"
  8. name="username"
  9. placeholder="输入手机号"
  10. maxlength="11"
  11. required
  12. />
  13. </section>
  14. <section>
  15. <label for="pass">密码:</label>
  16. <input
  17. placeholder="6-12位"
  18. size="12"
  19. maxlength="12"
  20. type="password"
  21. id="pass"
  22. name="pass"
  23. />
  24. </section>
  25. <section>
  26. <label for="female">性别:</label>
  27. <div class="box">
  28. <input type="radio" name="gender" id="male" value="male" />
  29. <label for="male"></label>
  30. <input type="radio" name="gender" id="female" value="female" />
  31. <label for="female"></label>
  32. </div>
  33. </section>
  34. <section>
  35. <label for="long1">降龙十八掌</label>
  36. <div class="box">
  37. <input type="checkbox" name="long1" id="long1" value="long1" />
  38. <label for="male">见龙在田</label>
  39. <input type="checkbox" name="long2" id="long2" value="long2" />
  40. <label for="female">长龙吸水</label>
  41. <input type="checkbox" name="long2" id="long2" value="long2" />
  42. <label for="female">飞龙在天</label>
  43. <input type="checkbox" name="long2" id="long2" value="long2" />
  44. <label for="female">龙跃在渊</label>
  45. <input
  46. type="checkbox"
  47. name="long2"
  48. id="long2"
  49. value="long2"
  50. checked
  51. />
  52. <label for="female">亢龙有悔</label>
  53. </div>
  54. </section>
  55. </form>
Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:作业标题改一下
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post