this post was submitted on 22 Mar 2025
110 points (75.9% liked)

Linux

52315 readers
1393 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

what the heck!! that is so wild, mind blowing, i thought the main difference between raster graphics and vector graphics was the quality but i didn't think about it too deeply.

i had no idea svg files actually used html code and pretty much could be modified using only text and amazing code woa!!! this opens up the possibility for so many things on linux i think.

for example, on a linux distro, we could modify the desktop environment and make it waaaaay lighter by getting rid of jpg or png icons and just using pure svg on it.

svg can be given a lot of attributes like movement, mouse hovering, change color, change anything. and most svg files are still under a megabyte. wow.. please let me know other fun facts about svg or eps files. i really like doing graphic design on linux and inkscape.

you are viewing a single comment's thread
view the rest of the comments
[–] cypherpunks@lemmy.ml 189 points 2 days ago* (last edited 20 hours ago) (3 children)

No, SVG files are not HTML.

~~Please change this post title (currently "today i learned: svg files are literally just html code"), to avoid spreading this incorrect factoid!~~

~~I suggest you change it to "today i learned: svg files are just text in an html-like language" or something like that.~~ edit: thanks OP

SVG is a dialect of XML.

XML and HTML have many similarities, because they both are descendants of SGML. But, as others have noted in this thread, HTML is also not XML. (Except for when it's XHTML...)

Like HTML, SVG also can use CSS, and, in some environments (eg, in browsers, but not in Inkscape) also JavaScript. But, the styles you can specify with CSS in SVG are quite different than those you can specify with CSS in HTML.

Lastly, you can embed SVG in HTML and it will work in (modern) browsers. You cannot embed HTML in SVG, however.

[–] adrianhooves@lemmy.today 20 points 2 days ago

ok thank you very much!!

[–] zarkanian@sh.itjust.works 8 points 2 days ago (2 children)

I remember when XHTML was supposed to replace HTML. Everything was going to be standardized and web designers would run their HTML code against a validator...it was going to be glorious! And of course it never happened, because demanding that all websites conform to the XHTML standard would've broken a lot of websites.

So, HTML5 ate XHTML's lunch because it was much more forgiving, and...oh yeah, you could watch videos and play games in it, too.

[–] alphadont@lemmy.ca 1 points 2 hours ago

Killing Flash was worth it, but couldn't we have avoided its reign of tyranny if we'd just stuck with Java applets in the first place...?

[–] Agent641@lemmy.world 7 points 2 days ago (2 children)

I fucking learned a whole-ass language for nothing back then because I thought it was the future!, fuck you, XHTML!

[–] alphadont@lemmy.ca 1 points 2 hours ago

As someone who can find a billion XML parser libraries and, like, three HTML parser libraries, you do have my gratitude if it's worth anything.

[–] zarkanian@sh.itjust.works 4 points 1 day ago

100% of XHTML will work in HTML5.

[–] BigMikeInAustin@lemmy.world 7 points 2 days ago

You know how they say that the internet is a series of tubes? We used to think that was just a funny old man. Turns out, it is the literal truth. The internet is made up of SVG files!