Blogger Information
Blog 11
fans 0
comment 0
visits 5888
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
html快捷键/属性/标签学习
becauses
Original
517 people have browsed it

vscode html快捷键

  • # id属性 div#id
  • . class属性 div.class
  • \^ 上级 div^p
  • > 下级 div>p
  • + 同级 div+div
  • * 多少个 li*3
  • \$ 序号生成 li.item$*3
  • \@ 跳过或者倒叙 li.item$@-1*3
  • {} 内容

html

通用属性

  • class
  • id
  • style

    预置属性

  • alt
  • title
  • src
  • ref
  • href

    事件属性 on + click

  • onclick
  • onkeydown
  • onload

    自定义属性

  • data-xxx

语义化标签

  1. <header></header>
  2. <main></main>
  3. <footer></footer>
  4. <nav></nav>
  5. ...

案例

  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>Document</title>
  8. <link rel="stylesheet" href="css">
  9. <script src="js" ></script>
  10. </head>
  11. <body>
  12. <header></header>
  13. <main>
  14. <!-- div>table#tid>tr.trclass$*3>td.tdclass$@-1{item$@5}*2+td>img[src]{预置属性}^td>p[style]{通用属性}^td>button[onclick="事件"]{事件属性}^td>div[data-omg]{自定义属性} -->
  15. <div>
  16. <table id="tid">
  17. <tr class="trclass1">
  18. <td class="tdclass2">item5</td>
  19. <td class="tdclass1">item6</td>
  20. <td><img src="" alt="">预置属性</img></td>
  21. <td>
  22. <p style="">通用属性</p>
  23. </td>
  24. <td><button onclick="事件">事件属性</button></td>
  25. <td>
  26. <div data-omg="">自定义属性</div>
  27. </td>
  28. </tr>
  29. <tr class="trclass2">
  30. <td class="tdclass2">item5</td>
  31. <td class="tdclass1">item6</td>
  32. <td><img src="" alt="">预置属性</img></td>
  33. <td>
  34. <p style="">通用属性</p>
  35. </td>
  36. <td><button onclick="事件">事件属性</button></td>
  37. <td>
  38. <div data-omg="">自定义属性</div>
  39. </td>
  40. </tr>
  41. <tr class="trclass3">
  42. <td class="tdclass2">item5</td>
  43. <td class="tdclass1">item6</td>
  44. <td><img src="" alt="">预置属性</img></td>
  45. <td>
  46. <p style="">通用属性</p>
  47. </td>
  48. <td><button onclick="事件">事件属性</button></td>
  49. <td>
  50. <div data-omg="">自定义属性</div>
  51. </td>
  52. </tr>
  53. </table>
  54. </div>
  55. </main>
  56. <footer></footer>
  57. </body>
  58. </html>
Correcting teacher:autoloadautoload

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