Skip to content
Sign upLog in
← Back to Community

How do I connect HTML files with CSS + JS?

Profile icon
Khalid785

how to connect html file with css and java script

Answered by hyperupcall [earned 5 cycles]
View Answer
Voters
Profile icon
miralana
Profile icon
ShamsAl-Dawoodi
Profile icon
KalyanKanuri
Profile icon
XiaomingYang1
Profile icon
MaraReynoso
Profile icon
Khalid785
Comments
hotnewtop
Profile icon
hyperupcall

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

<script src="script.js"></script>

Hope I could help :)

Profile icon
a5rocks

@eankeen
you can also add main.css with:

<link rel="stylesheet" type="text/css" href="main.css">
Profile icon
Khalid785

@eankeen

Thank you for a promt help.

Profile icon
Khalid785

@a5rocks

Many thanks for a prompt response.

Profile icon
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!