add svg to html
<!-- external svg -->
<img src="mySvgImage.svg" />
<!-- internal svg example -->
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<rect width="100" height="100" x="50" y="50"/>
</svg>
add svg to html
<!-- external svg -->
<img src="mySvgImage.svg" />
<!-- internal svg example -->
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<rect width="100" height="100" x="50" y="50"/>
</svg>
how to add an svg image to html
<body>
<img src="blabla.svg" alt="blabla_is_working">
</body>
Is it a good idea to use .svg images in web design?
Because SVG files are vector graphics instead of pixel-based
raster images, they can be resized without losing any image
quality. This is especially helpful when you are creating
responsive websites that need to look good and work well across
a wide range of screen sizes and devices.
Mar 30, 2019
That said, yes, you can use vector based images online.
However, support isn't nearly as much as your good ol' raster
formats (png, gif, jpg). The main options for vector imagery
on a web site would be SVG and Flash.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us