Why isn’t it ?
The way JavaScript works is we can do scripts as an inline block:
let foo = "bar";
Or, if the script should be fetched from the network…
With CSS, we can do an inline block of styles:
<style>
.foo { color: red; }
</style>
So why not <style src=""></style>? Instead, we have <link href="">.
Harry Roberts asked about that the other day on Twitter:
Can any W3 historians tell us why it’s `<link rel=”stylesheet” …
The post Why isn’t it <style src=””>? appeared first on CSS-Tricks.




