Answers for "svg images for website"

25

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>
Posted by: Guest on October-29-2020
1

how to add an svg image to html

<body>

<img src="blabla.svg" alt="blabla_is_working">

</body>
Posted by: Guest on November-04-2020
0

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.
Posted by: Guest on January-03-2020

Browse Popular Code Answers by Language