HTML initial structure

! + Tab

Generate the infrastructure quickly

id(#),class(.)

div#test

<div id="test"></div>

div.test

<div class="test"></div>

Child node (>), sibling node (+), parent node (^)

div>ul>li>p

<div>
   <ul>
     <li>
       <p></p>
     </li>
   </ul>
 </div>

div+ul+p

<div></div>
<ul></ul>
<p></p>

Div >ul>li^div (two ^ ^ is upper)

<div>
   <ul>
     <li></li>
   </ul>
   <div></div>
 </div>

Repeat (*)

div
5 (The number after the number is the number of repeated elements.

   <div></div>
   <div></div>
   <div></div>
   <div></div>
   <div></div>

Group (())

div>(ul>li>a)+div>p


The contents inside the parentheses are a block of code that is independent of the hierarchy within and outside the parentheses

 <div>
     <ul>
       <li><a href=""></a></li>
     </ul>
     <div>
       <p></p>
     </div>
</div>

Attributes ([attr])

a[href=’###’ name=’xiaoA’]

<a href="###" name="xiaoA"></a>

Serial number ($)

ul>li.test$*3

<ul>
      <li class="test1"></li>
      <li class="test2"></li>
      <li class="test3"></li>
    </ul>

ul>li*3.test$@3

<ul>
   <li class="test3"></li>
   <li class="test4"></li>
   <li class="test5"></li>
 </ul>

Text ({})

The $* ul > li 3 $} {test

< ul > < li class = "test1" > 1 < / li > < li class = "test2" > test 2 < / li > < li class = "test3" > test 3 < / li > < / ul >

Implicit label

.test

<div class="test"></div>

ul>.test$*3

 <ul>
      <li class="test1"></li>
      <li class="test2"></li>
      <li class="test3"></li>
    </ul>

select>.test$*5

<select name="" id="">
  <option class="test1"></option>
  <option class="test2"></option>
  <option class="test3"></option>
  <option class="test4"></option>
  <option class="test5"></option>
</select>