smuggledPancakes smuggledPancakes - 6 months ago 14x
HTML Question

Using script tag to include JavaScript in program via a CSS file?

I have never seen this before. I have always included JavaScript in my HTML files. Is this jsfiddle doing it wrong or am I naïve?

CSS file in jsfiddle:

</style> <!-- remove this, it is just for jsfiddle -->
<link rel="stylesheet" type="text/css" href="">
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
.grid {
width: 500px;
height: 250px;

I have trouble googling the issue of using a
tag in a CSS file, it gets conflated with other issues like executing JavaScript in a CSS file.

Also, what part should be removed? Just the top line? I am baffled by the
followed later by another


Apparently jsfiddle implements their CSS/JavaScript sections simply using <style></style> and <script></script> tags inside an HTML file.