New course! Every coder should learn Generative AI!
Try a free lesson+ 3
Who makes use of visual studio code?
I'm trying to build a live webpage but my style sheets and js code are not holding any effect on the html elements. Why? https://www.sololearn.com/post/172229/?ref=app
5 Answers
+ 18
Try using link tag to link your css and js file to your html file.
+ 7
Mofey if your css and js don't apply in your html code try providing a link to them using
<link rel='stylesheet' href='style.css'></link>
<script src='active.js'></script>
+ 2
Alright
+ 1
Mirielle🐶 [Inactive] I want my JavaScript code to be in an external file. What do you also mean by "there's no link"?
+ 1
The problem is with your connection between the HTML file and the CSS and JS files. Nothing is wrong with the compiler