cbreemer
Bronze Coder
Not a problem, just a question. I am struggling to understand why the syntax for including external CSS and JS is so different. Currently I use this :
This works, but being a sucker for neat and tidy code, this syntax annoys me. I don't really see why there should be a difference. Would/should it not be possible to use the same syntax for both ? Or even better, for the JS fle to pull in the CSS file so I would only need one line ?
HTML:
<script src="http://localhost:80/lib/dialogs.js"></script>
<link rel="stylesheet" href="http://localhost:80/lib/dialogs.css">
This works, but being a sucker for neat and tidy code, this syntax annoys me. I don't really see why there should be a difference. Would/should it not be possible to use the same syntax for both ? Or even better, for the JS fle to pull in the CSS file so I would only need one line ?