I’m trying to load Javascript and CSS folders into my server by copy pasting. When opening index.html the site does not pick up the JS and CSS mods. How can I make it work? Answers appreciated!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You must create a link to the CSS and JS files in the head of your page. Below is an example of an internal link <link rel=“stylesheet” href=“main.css”>, and an external link <script src=“https://apis.google.com/js/platform.js” async></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>LINKS</title>
<meta name="Below are 2 ways to link JS and CSS.">
<link rel="stylesheet" href="main.css">
<script src="https://apis.google.com/js/platform.js" async></script>
</head>
<body>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.