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.
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.