sanjar-notes / frontend

The basics - HTML, CSS, Javascript, browser APIs, performance
3 stars 0 forks source link

render SVG using `object` tag. #89

Open ahmarcode opened 1 year ago

ahmarcode commented 1 year ago

./image.svg exists

<!DOCTYPE html>
<html>
<head>
    <title>SVG Rendering</title>
</head>
<body>
    <object data="image.svg" type="image/svg+xml">
        <!-- Fallback content in case the SVG cannot be displayed -->
        <img src="fallback-image.png" alt="Fallback Image">
    </object>
</body>
</html>