Who makes use of visual studio code? | Sololearn: Learn to code for FREE!
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

8th Nov 2019, 8:29 PM
eMBee
eMBee - avatar
5 Answers
+ 18
Try using link tag to link your css and js file to your html file.
9th Nov 2019, 11:07 AM
Debbie
Debbie - avatar
+ 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>
8th Nov 2019, 8:58 PM
Jella
Jella - avatar
+ 2
Alright
8th Nov 2019, 9:01 PM
eMBee
eMBee - avatar
+ 1
Mirielle🐶 [Inactive] I want my JavaScript code to be in an external file. What do you also mean by "there's no link"?
8th Nov 2019, 8:32 PM
eMBee
eMBee - avatar
+ 1
The problem is with your connection between the HTML file and the CSS and JS files. Nothing is wrong with the compiler
10th Nov 2019, 10:18 AM
keivan Ipchi
keivan Ipchi - avatar