+ 2
Hi there ! I have a windows 7 , how can i put 3 files in one folder (html, css and JavaScript) and then open it with chrome?
And if u know how to open it with a browser , can I copy that link and send it to my friend and when he opens it he should see the same output I seen on my browser?
3 odpowiedzi
+ 2
you just need to use the relative path of your javascript and css file inside html file using <script> and <link> respectively and then open your html file using chrome.
But as the files are in you local machine your friend can't see the output. If you want your friend to see your website then you have to host your files on some cloud server
Consider the following code snippets:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="your-css-filename.css" type="text/css"/>
<script src="your-js-filenme.js" type="text/javascript"></script>
</head>
<body>
<!-- body code goes here -->
</body>
</html>
+ 2
Thanks mahn so much
+ 2
I sent u a message plz read it