<svg>
 <!--  第一条线  -->
 <line x1="20" y1="100" x2="100" y2="20"
      stroke-width="2" stroke="red"/>
 <!--  第二条线  -->
 <line x1="100" y1="100" x2="20" y2="20"
      stroke-width="2" stroke="red"/>
  
  <text x="0" y="114" stroke="red">
    (20,100) 
  </text>
  <text x="0" y="14" stroke="red">
    (20,20) 
  </text>
  <text x="76" y="14" stroke="red">
    (100,20) 
  </text>
  <text x="70" y="114" stroke="red">
    (100,100) 
  </text>
</svg>
svg{
  width: 120px;
  height: 120px;
}
svg text{
  font-size: 12px;
  color: red;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.