HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/vivEjz7EesgL/amnt.svg" alt="Certificate Ribbon" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 120" preserveAspectRatio="none" fill="currentColor"><rect x="42" y="12" width="292" height="82" fill="none" stroke="currentColor" stroke-width="4"/><path d="M313 96v21l9-6 9 6V96Z"/><path d="m322 69 4 4 6-1 2 6 6 3-2 6 2 6-6 3-2 6-6-1-4 4-4-4-6 1-2-6-6-3 2-6-2-6 6-3 2-6 6 1Z"/><circle cx="322" cy="87" r="9" fill="none" stroke="currentColor" stroke-width="3"/></svg>
CSS background-image
.certificate-ribbon {
background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/vivEjz7EesgL/amnt.svg");
background-size: contain;
}
CSS mask-image (takes the text colour)
.certificate-ribbon {
width: 1.5em; height: 1.5em;
background-color: currentColor;
mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/vivEjz7EesgL/amnt.svg") center / contain no-repeat;
}
React
import CertificateRibbonSvg from "./certificate-ribbon.jsx"; // from the React tab above
<CertificateRibbonSvg width={48} height={48} />