Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
6

How do I connect HTML files with CSS + JS?

Khalid785
Khalid785

how to connect html file with css and java script

4 years ago

Voters

Comments

TopNew
5
hyperupcall
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 :)

4 years ago
1
a5rocks
a5rocks

@eankeen
you can also add main.css with:

<link rel="stylesheet" type="text/css" href="main.css">
4 years ago
1
Khalid785
Khalid785

@eankeen

Thank you for a promt help.

4 years ago
1
Khalid785
Khalid785

@a5rocks

Many thanks for a prompt response.

4 years ago
2
katyadee
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!

4 years ago
Load more