This is how you do such a shape with an svg. Obviously you will need to adapt sizes to whatever you want to achieve.
Quick Explanation
- svg width and height are as you can imagine just the size of the svg
- polygon points - x,y coordinates of the corners - it goes like this - Top Left, Bottom Left, Bottom Right, Top Right. Use fill to change the "background color", use the stroke so you can join the corners with a radius.
- text is very self explanatory as well, position it in x and y and fill will be the text's color
<svg width="2000" height="2000">
<polygon points="98 160, 100 200, 195 200, 205 155" style="stroke: green; stroke-width: 5; stroke-linejoin:round; fill:green"/>
<text fill="#fcfcfc" class="text" x=135 y=183>Text</text>
</svg>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…