File size: 560 Bytes
ac2ef77
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="60">
  <rect width="200" height="60" rx="10" ry="10" style="fill: #3498db; stroke: #2980b9; stroke-width: 2;" />
  <text x="50%" y="50%" alignment-baseline="middle" text-anchor="middle" style="fill: #fff; font-size: 18px; font-family: Arial, sans-serif; cursor: pointer;">
    Click Me
  </text>
  <!-- You can wrap the text element with an a element to make it clickable -->
  <a href="https://example.com">
    <rect width="100%" height="100%" style="fill: transparent;" />
  </a>
</svg>