Ask coding questions

← Back to all posts
How do I connect HTML files with CSS + JS?
Khalid785

how to connect html file with css and java script

Answered by eankeen [earned 5 cycles]
View Answer
Voters
KalyanKanuri
XiaomingYang1
MaraReynoso
Khalid785
Comments
hotnewtop
eankeen

Hey!
If you want to add your script.js file to youy HTML, you can add a <script></script> tag.

So, inside of your <head></head>, you can write

Hope I could help :)

a5rocks

@eankeen you can also add main.css with:

Khalid785

@eankeen

Thank you for a promt help.

Khalid785

@a5rocks

Many thanks for a prompt response.

katyadee

Hey there, in the future make sure your subject line reflects a bit about your question. It makes it easier for our community to help you!