Chaerin.dev

[HTML] HTML SVG Tags

Original Velog Posting https://velog.io/@chaerin00/HTML-HTML-SVG

Let’s delve into the SVG tag 😊

What is SVG?

Scalable Vector Graphics (SVG) is an XML-based file format for representing 2D vector graphics. It is an open standard vector graphic file format developed under the leadership of W3C (World Wide Web Consortium) in 1999. SVG images and their behavior are defined by XML text files, allowing them to be searched, indexed, scripted, and optionally compressed. SVG is the standard for representing vector images developed by W3C.



SVG vs PNG

PNG files are bitmap-based, whereas SVG files are vector-based, resulting in differences when the image is scaled up. PNG example SVG example

Using SVG Files