본문 바로가기

프론트엔드/HTML

[HTML] VSCode Emmet

코드

 

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>

  <!-- div>ul>li+li+li -->
  <!-- 혹은 div>ul>li*3 -->
  <div>
    <ul>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </div>

  <!-- span.myspan -->
  <span class="myspan"></span>

  <!-- span#myspan -->
  <span id="myspan"></span>
  
  <!-- .mydiv -->
  <div class="mydiv"></div>

  <!-- p{Hello World} -->
  <p>Hello World</p>
  
  <!-- div[width=100 height=100].my100div -->
  <div width="100" height="100" class="my100div"></div>

  <!-- li.lists{list$}*4 -->
  <li class="lists">list1</li>
  <li class="lists">list2</li>
  <li class="lists">list3</li>
  <li class="lists">list4</li>

  </body>
</html>

 


Reference

강의

'프론트엔드 > HTML' 카테고리의 다른 글

[HTML] head 태그  (2) 2024.02.04
[HTML] Form 태그  (0) 2024.02.01
[HTML] 이미지 & 멀티미디어 태그  (0) 2024.01.31
[HTML] 영역 태그  (0) 2024.01.31
[HTML] 태그  (0) 2024.01.30