当前位置:   article > 正文

前端学习1——自学习梳理

前端学习1——自学习梳理

HTML常见标签

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. </head>
  8. <body>
  9. <!--span文本标签,划分空间-->
  10. <span style="color:red;font-size: 30px;">hello</span><span>demo666</span>
  11. <!--标题标签-->
  12. <h1 style="color:yellow;">第一个标题</h1>
  13. <h2>第二个标题</h2>
  14. <h3>第三个标题</h3>
  15. <h4>第四个标题</h4>
  16. <h5>第五个标题</h5>
  17. <h6>第六个标题</h6>
  18. <!-- div竖着布局 -->
  19. <div>hello</div>
  20. <div>hello</div>
  21. <div>hello</div>
  22. <!-- 段落标签 -->
  23. <p>demo</p>
  24. <p>demo</p>
  25. <p>demo</p>
  26. <!-- id class style 所有便签共有的属性-->
  27. <!-- 超链接标签 a href表示要跳转的资源-->
  28. <!-- _self本窗口打开(默认) _blank新窗口打开 写窗口名指定窗口打开 target="demo"-->
  29. <a href="https://www.baidu.com" target="demo">百度</a>
  30. <!-- img图片便签 src资源路径(绝对/相对) -->
  31. <!--相对路径-->
  32. <!-- 兄弟关系 直接访问-->
  33. <!-- 叔侄关系 img/R-C.jpg-->
  34. <!-- 表兄弟关系 ../img/R-C.jpg-->
  35. <!-- alt 图片加载失败时会提示的文字 -->
  36. <img src="img/R-C.jpg" alt="这是一个星辰图片">
  37. <!-- 列表便签 ul li-->
  38. <ul>
  39. <li>事项1</li>
  40. <li>事项2</li>
  41. <li>事项3</li>
  42. </ul>
  43. <!-- 表格便签 table-->
  44. <!-- tr代表行 tb代表单元格 -->
  45. <!-- width="1000px" height="100px" -->
  46. <!-- 填充度 cellpadding="30px" -->
  47. <!-- 单元格间距 cellspacing="0" -->
  48. <!-- th代替td 加粗居中 -->
  49. <!-- thead tfoot tbody 将tr包围起来-->
  50. <table border="1" >
  51. <tr>
  52. <td>id</td>
  53. <td>name</td>
  54. <td>sex</td>
  55. <td>age</td>
  56. </tr>
  57. <tr>
  58. <td>1</td>
  59. <td>张三</td>
  60. <td></td>
  61. <td>18</td>
  62. </tr>
  63. <tr>
  64. <td>2</td>
  65. <td>李四</td>
  66. <td></td>
  67. <td>18</td>
  68. </tr>
  69. </table>
  70. <!-- iframe窗口便签 -->
  71. <!-- frameborder 页面嵌入的更融合-->
  72. <iframe src="https://www.bilibili.com/?ADTAG=search-zd" name="demo" width="800px" height="600px" frameborder="0"></iframe>
  73. <br><br>
  74. <!-- 收集用户信息便签 -->
  75. <!-- -->
  76. <input type="text">单行文本框
  77. <br><br>
  78. <input type="password">密码
  79. <br><br>
  80. <input type="date">日期
  81. <br><br>
  82. <input type="datetime-local">日期时间
  83. <br><br>
  84. <input type="file">文本选择器
  85. <br><br>
  86. <select>
  87. <option>数学</option>
  88. </select>
  89. <br><br>
  90. <input type="button" value="按钮">
  91. <br><br><br><br><br><br><br><br><br><br><br><br>
  92. </body>
  93. </html>
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号