OneCompiler

How do you link an external CSS file or JavaScript file correctly?

..

2 Answers

2 months ago by

use <link> element in <head> section. set the rel attribute to "stylesheet". Specify the "type" attribute as "text/css". Use the "href" attribute to provide the path to the Css file

2 months ago by Jamie Harrington [Pupil]

for a javascript file, you can either put this in the body or the head:

<script src="yourfilehere.js"></script>
6 days ago by Andy Forsyth