{"id":318,"date":"2026-03-05T13:56:00","date_gmt":"2026-03-05T13:56:00","guid":{"rendered":"https:\/\/megandarkodesigns.uk\/blog\/?p=318"},"modified":"2026-03-09T17:23:02","modified_gmt":"2026-03-09T17:23:02","slug":"understanding-svgs-for-the-web","status":"publish","type":"post","link":"https:\/\/megandarkodesigns.uk\/blog\/understanding-svgs-for-the-web\/","title":{"rendered":"Understanding SVGs For The Web"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>What are SVG\u2019s and why are they useful<\/strong>?<\/h5>\n\n\n\n<p>SVG stands for Scalable Vector Graphics. It\u2019s a type of graphic format widely used in web design. SVG was developed by World Wide Web Consortium \u2013 W3C between 1998 and1999. It was then created as an open-standard XML based vector image and was officially released in September 2001. SVGs are especially useful because they are scalable and lightweight which beats traditional images like JPEGSs or PNGs. The can be scaled across a wide range of dimensions without losing its quality. This is why they are great for responsive web designs, icons, logos, illustrations and interactive graphics.<\/p>\n\n\n\n<p>SVGs use mathematical formulas to create lines, shapes, colours and paths instead of pixels, which allows the image to be sharper.<\/p>\n\n\n\n<p>Here is a comparison between a PNG and SVG of the same image:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"486\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-8.png\" alt=\"\" class=\"wp-image-329\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-8.png 929w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-8-300x157.png 300w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-8-768x402.png 768w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/figure>\n\n\n\n<p>From a distance, the PNG and SVG image looks the same however when zoomed in, the PNG lines become pixelated while the SVG graphic remains sharp.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"756\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-9-1024x756.png\" alt=\"\" class=\"wp-image-330\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-9-1024x756.png 1024w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-9-300x222.png 300w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-9-768x567.png 768w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-9.png 1033w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>When comparing file size between the two images, the SVG file is less in size. But why does file size matter? Smaller file sizes create a better user experience. A webpage with a small file size will load faster. It also means that those with limited connectivity and are using mobile data will have less data to download. As well as this, it also improves the overall performance of the webpages.<\/p>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">Key benefits of SVGs:<\/span><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Scalable: <\/strong>No pixelation on any screen size which allows websites to have quality images.<\/li>\n\n\n\n<li><strong>Lightweight: <\/strong>SVGs are often smaller in file sizes than high resolution PNGs or JPEGs<\/li>\n\n\n\n<li><strong>Editable: <\/strong>It can be editing in both code and design software<\/li>\n\n\n\n<li><strong>Interactive: <\/strong>It supports animations and CSS styling<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>How to Create SVGs<\/strong><\/h5>\n\n\n\n<p>Here are a few ways SVGs can be created:<\/p>\n\n\n\n<p><strong>1. Manually writing SVG code<\/strong> \u2013 Its discussed in the \u2018What are the various ways SVGs can be added onto webpages\u2019 section under Inline SVGs.<\/p>\n\n\n\n<p><strong>2. Design tools <\/strong>\u2013 such as Adobe Illustrator, Figma and infinity.<\/p>\n\n\n\n<p><span style=\"text-decoration: underline;\">Here\u2019s a tutorial using Figma as the design tool<\/span><\/p>\n\n\n\n<p>2.1. Create your shape \u2013 Here is a smiley face created in Figma using 3 cirlcles and a line.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"383\" height=\"370\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-10.png\" alt=\"\" class=\"wp-image-331\" style=\"aspect-ratio:1.035180336177042;width:213px;height:auto\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-10.png 383w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-10-300x290.png 300w\" sizes=\"auto, (max-width: 383px) 100vw, 383px\" \/><\/figure>\n<\/div>\n\n\n<p>2.2. Group your wireframe. If your SVG has many shapes and layers, this ensures that the SVG is exported as a single image.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"551\" height=\"390\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-12.png\" alt=\"\" class=\"wp-image-333\" style=\"aspect-ratio:1.4128936613510699\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-12.png 551w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-12-300x212.png 300w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"228\" height=\"213\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-164303.png\" alt=\"\" class=\"wp-image-336\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>2.3. Remove the background (optional). If you don\u2019t want your image to have a background, go selection colors. A Figma wireframe automatically comes with a white background so for the white colour (FFFFFF) change it from 100% to 0% and that should remove your background.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"252\" height=\"202\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-164545.png\" alt=\"\" class=\"wp-image-338\" style=\"aspect-ratio:1.2475439003635802;width:278px;height:auto\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"228\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-164614.png\" alt=\"\" class=\"wp-image-339\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>2.4. Once you are happy with your desired line or shape, go to the <strong>Export<\/strong> tab and click the <strong>+<\/strong>. Mine is set to PNG as default but we want to select SVG. Then click the Export button below, which will save your work as a SVG file.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"266\" height=\"427\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-15.png\" alt=\"\" class=\"wp-image-340\" style=\"aspect-ratio:0.622959818487887;width:196px;height:auto\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-15.png 266w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-15-187x300.png 187w\" sizes=\"auto, (max-width: 266px) 100vw, 266px\" \/><\/figure>\n<\/div>\n\n\n<p>2.5. When the file is opened, it should automatically display in the default web browser, allowing the SVG image to be viewed.<\/p>\n\n\n\n<p><strong>3.<\/strong> <strong>Converting graphics to SVG<\/strong> &#8211; You can also convert PNGs or JPEGs to SVG using online converter tools. However, it&#8217;s not the best practice because complex raster images may not always convert cleanly.<\/p>\n\n\n\n<p>Here&#8217;s an example of an image that was converted from JPEG to SVG.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"350\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/rainbow-clean.jpg\" alt=\"\" class=\"wp-image-341\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/rainbow-clean.jpg 622w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/rainbow-clean-300x169.jpg 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"543\" height=\"304\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-165749.png\" alt=\"\" class=\"wp-image-342\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-165749.png 543w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-165749-300x168.png 300w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Various Ways SVGs Are Added to Webpages<\/strong><\/h5>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Inline SVG <\/strong><\/h6>\n\n\n\n<p>In HTML, SVG lines, shapes and colours can be created using code, where the position and the size of the shape is defined using x and y axis coordinates. Here are the basic shape elements that can be created:<\/p>\n\n\n\n<p><strong>1.<\/strong> An &lt;line&gt; element creates a straight line between two points. X1 and y1 is the starting point of the line, while x2 and y2 defines the ending point of the line. The stroke is the line colour; here it\u2019s been set to green. And the stroke-width is the like thickness which I\u2019ve set to 4.<\/p>\n\n\n\n<p><strong>2.<\/strong> The &lt;rect&gt; element creates a rectangle. The x = horizontal position (left to right) and the y = vertical position (top to bottom). The x and y positions determines where the rectangle starts on the page. The fill attribute determines the rectangles colour, here its been set to red.<\/p>\n\n\n\n<p><strong>3. <\/strong>The &lt;circle&gt; element creates a circle. The &nbsp;cx = centre point x axis and the cy = centre point y axis, while the r = radius. The radius determines how big the circle is. A larger radius value creates a bigger circle, and a smaller radius creates smaller circle.<\/p>\n\n\n\n<p><strong>4.<\/strong> The &lt;ellipse&gt; element creates an oval shape. What makes the ellipse different to a circle is the rx = horizonal radius and ry = vertical radius which will stretch the circle out. In the example, the rx is larger than ry, therefore shape will stretch horizontally.<\/p>\n\n\n\n<p><strong>5.<\/strong> The &lt;polyline&gt; element creates any shape made of connected straight. The points for polylines and polygons are represented in coordinate pairs. The pairs are written like this: x1, y1 x2,y2 x3,y3 x4,y4. The x value represents horizontal position, and the y value represents vertical position. In the example, there\u2019s 4 pairings which makes 4 connected straight lines.<\/p>\n\n\n\n<p><strong>6. <\/strong>The &lt;polygon&gt; element is similar to &lt;polyline&gt;. The key difference is the polygon element automatically closes the shape, connecting the last point back to the first.<\/p>\n\n\n\n<p><strong>7. <\/strong>The &lt;path&gt; element is most versatile. Although SVG provides seven basic shape elements, the &lt;path&gt; element can create almost any vector shape, which makes it foundational to most SVG graphics used on websites.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Img tag<\/h6>\n\n\n\n<p>In this case, the SVG is used as an image source file, &nbsp;just like any other image on a webpage. It is important to also include a descriptive alt attribute so that those who are visually impaired can interpret the image through screen readers.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"109\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-171314.png\" alt=\"\" class=\"wp-image-360\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-171314.png 638w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-171314-300x51.png 300w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/figure>\n\n\n\n<h6 class=\"wp-block-heading\">CSS Background image<\/h6>\n\n\n\n<p>In this method, the SVG is being applied though CSS instead of placing it in the HTML. In the example, the background image has been added to the body CSS. The min-height is made to fit the screen size, and the background-image loads the SVG onto the webpage. Background-size is put as cover to cover the webpage and background-repeat is to make sure the SVG is not duplicated many times across the page.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"616\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-17.png\" alt=\"\" class=\"wp-image-361\" style=\"aspect-ratio:0.9983888704191495;width:463px;height:auto\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-17.png 615w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-17-300x300.png 300w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-17-150x150.png 150w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n<\/div>\n\n\n<h6 class=\"wp-block-heading\">SVG Sprites<\/h6>\n\n\n\n<p>This is best for reusing SVGs multiple times across the webpage without having to rewrite the full SVG code. The SVG is defined once inside the &lt;symbol&gt; element and each symbol is given its own unique ID. To be able to reuse the SVG, you would use the &lt;use&gt; element. Its especially good for styling all the SVGs you\u2019ve reused, at once.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Creating CSS Animated SVGs<\/strong><\/h5>\n\n\n\n<p>With CSS, it can animate properties such as colours, positions, scales and rotation.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Hover Animation<\/strong><\/h6>\n\n\n\n<p>In the example below, the circle changes colour once the user hovers over it. The transition property tells the browser the way it should animate once the user hovers over it, the 0.5 ease gives it a slight delay into a smooth transition to a different colour. The MyCircle hover element is calling for the orange circle to turn purple when the user hovers over it.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"457\" height=\"372\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-19.png\" alt=\"\" class=\"wp-image-365\" style=\"aspect-ratio:1.2285042214474735;width:399px;height:auto\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-19.png 457w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-19-300x244.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/figure>\n<\/div>\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"227\" height=\"222\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-171101-edited.png\" alt=\"\" class=\"wp-image-359\" style=\"aspect-ratio:0.9780393776676305;width:251px;height:auto\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"180\" height=\"161\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-06-155535-edited-1.png\" alt=\"\" class=\"wp-image-357\" style=\"aspect-ratio:1.1181209356498107;width:284px;height:auto\"\/><\/figure>\n<\/div><\/div>\n<\/div>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Bouncing Animation<\/strong><\/h6>\n\n\n\n<p>The &lt;svg&gt; element creates a 150\u00d7150 canvas, while the &lt;circle&gt; element draws a circle positioned in the centre using cx and cy. The CSS applies a keyframe animation that changes the circle\u2019s radius from 40 to 60 pixels, causing the circle to expand and shrink repeatedly to create a pulsing effect.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"425\" height=\"343\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-18.png\" alt=\"\" class=\"wp-image-364\" style=\"aspect-ratio:1.2391235023461347;width:395px;height:auto\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-18.png 425w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-18-300x242.png 300w\" sizes=\"auto, (max-width: 425px) 100vw, 425px\" \/><\/figure>\n<\/div>\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"159\" height=\"147\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-171604.png\" alt=\"\" class=\"wp-image-362\" style=\"aspect-ratio:1.0817563257495215;width:221px;height:auto\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"154\" height=\"144\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-09-171627.png\" alt=\"\" class=\"wp-image-363\" style=\"aspect-ratio:1.0694519804666305;width:218px;height:auto\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>How can they be optimised?<\/strong><\/h5>\n\n\n\n<p>Why should we optimise our SVGs? Optimising SVGs improves the website performance and loading times which is from removing unnecessary things in the SVG.<\/p>\n\n\n\n<p><strong>1. SVG optimisation tools <\/strong>\u2013 SVGOMG. A optimisation tool like SVGOMG removes spaces, comments, layers and metadata which is not needed. By doing this, the SVG file size will be reduced.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"677\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-1.png\" alt=\"\" class=\"wp-image-320\" style=\"aspect-ratio:1.2881087501649728;width:422px;height:auto\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-1.png 872w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-1-300x233.png 300w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-1-768x596.png 768w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>2. Code-level optimisation<\/strong> \u2013 If you are manually coding your SVG image, removing line breaks, indentations and extra spaces will also help reduce the file size.<\/p>\n\n\n\n<p><strong>3. Simplify paths<\/strong> \u2013 if using a design tool to create your SVG from scratch, try reducing the amount of anchor points on your image and removing unnecessary layers. Extensive amount of anchor points and layers will make the file size bigger.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"404\" src=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image.png\" alt=\"\" class=\"wp-image-319\" style=\"aspect-ratio:1.245107140094376;width:338px;height:auto\" srcset=\"https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image.png 503w, https:\/\/megandarkodesigns.uk\/blog\/wp-content\/uploads\/2026\/03\/image-300x241.png 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">References<\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.w3schools.com\/graphics\/svg_polyline.asp\">https:\/\/www.w3schools.com\/graphics\/svg_polyline.asp<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/SVG#:~:text=SVG%20has%20been%20in%20development,submissions%20were%20received%20that%20year\">https:\/\/en.wikipedia.org\/wiki\/SVG#:~:text=SVG%20has%20been%20in%20development,submissions%20were%20received%20that%20year<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>What are SVG\u2019s and why are they useful? SVG stands for Scalable Vector Graphics. It\u2019s a type of graphic format widely used in web design. SVG was developed by World Wide Web Consortium \u2013 W3C between 1998 and1999. It was then created as an open-standard XML based vector image and was officially released in September [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-318","post","type-post","status-publish","format-standard","hentry","category-article"],"_links":{"self":[{"href":"https:\/\/megandarkodesigns.uk\/blog\/wp-json\/wp\/v2\/posts\/318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/megandarkodesigns.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/megandarkodesigns.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/megandarkodesigns.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/megandarkodesigns.uk\/blog\/wp-json\/wp\/v2\/comments?post=318"}],"version-history":[{"count":3,"href":"https:\/\/megandarkodesigns.uk\/blog\/wp-json\/wp\/v2\/posts\/318\/revisions"}],"predecessor-version":[{"id":372,"href":"https:\/\/megandarkodesigns.uk\/blog\/wp-json\/wp\/v2\/posts\/318\/revisions\/372"}],"wp:attachment":[{"href":"https:\/\/megandarkodesigns.uk\/blog\/wp-json\/wp\/v2\/media?parent=318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/megandarkodesigns.uk\/blog\/wp-json\/wp\/v2\/categories?post=318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/megandarkodesigns.uk\/blog\/wp-json\/wp\/v2\/tags?post=318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}