today i read about a language SVG through tweet , I have no knowledge about that bt in a tweet i read that css is only for fun ,nd worth learning is SVG!
I m confused , can someone plz help me is css nd svg is same or different ?
today i read about a language SVG through tweet , I have no knowledge about that bt in a tweet i read that css is only for fun ,nd worth learning is SVG!
I m confused , can someone plz help me is css nd svg is same or different ?
For further actions, you may consider blocking this person and/or reporting abuse
coder9653 -
jordan wilfry -
Valeria -
Gaurav Adhikari -
Top comments (9)
SVG and CSS are two completely different things. CSS is used to style the website and styling cannot be done with SVG. So you'll need CSS regardless. However, SVGs are used as scalable graphics for websites, such as backgrounds, images or small illustrations.
thanks for ur explanation βΊ
Sure!π
Let's put it simply.
HTML is an XML based thing and CSS is the only way to style it.
SVG is an XML based thing and CSS is the only way to style it.
People like to use CSS and HTML to achieve similar graphics and illustrations to an SVG but as you should know SVG being XML based can sit inside an XML based HTML document the two are compatible.
Use the right tools, scalable vector graphic for making graphics, and no don't learn it yet. Use illustrator or any similar tool to draw SVGs
thanks for ur explanation βΊ
my dout is cleared
thanks
CSS is cascading style sheets and SVG is Scalable Vevtor Graphics.
SVGs are used in place of images/ backgrounds given your use case. But still you would need css to style those SVGs.
You would also need to style your CSS to style whole of your website. Without which it would be a plain black and white document.
So i wouldnt ever say CSS is only for fun π
thanks for ur explanation βΊ
hihi i got it!
It depends on what your goal is. If you want to build interfaces then CSS is going to be valuable. If you want to create illustrations, icons or something of that nature then go for SVG. Plenty of resources for both out there and thereβs no harm in learning about both!
thanks for ur explanation βΊ