That post seems to be missing.
load all comments
cypherpunks 181 points a year ago

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.

path: 0 15902684, hotness: undefined, score: 181, children: 7
adrianhooves 21 points a year ago
path: 0 15902684 15910676, hotness: undefined, score: 21, children: 0
BigMikeInAustin 8 points a year 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!

path: 0 15902684 15917210, hotness: undefined, score: 8, children: 0
zarkanian 8 points a year ago

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.

path: 0 15902684 15928614, hotness: undefined, score: 8, children: 4
Agent641 6 points a year ago

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

path: 0 15902684 15928614 15928787, hotness: undefined, score: 6, children: 2
alphadont 2 points a year 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...?

path: 0 15902684 15928614 16002121, hotness: undefined, score: 2, children: 0

thanks for using Leebra!

go to feed...