+ 1
How do you link js filles to HTML and how do you create more pages on your website or blog ?
7 ответов
+ 5
<a href="page2.html"> goto page 2 </a>
+ 5
<script src="myscripts.js"></script>
See this link
https://www.w3schools.com/tags/att_script_src.asp
+ 2
As for the js files, refer to Pedro's answer. If you want to literally have "more pages", then you just create separate HTML files and link to them in the index.html file. Hope this helps.
+ 2
Jones Sichone you can do that with the ``<a href=""></a>`` tag. So in the body of the index.html file, you would have something like the following:
<a href="PATH_TO_SECOND_PAGE>Click here to to go my second page</a>
Replace PATH_TO_SECOND_PAGW with the path/URL to to the page you want to link. For more information, refer to this section in the HTML tutorial: https://www.sololearn.com/learn/HTML/1031/
+ 1
Thanks guys 👍🏻👍🏻👍🏻
0
What of creating more pages on your website or blog
0
Nd how do you link them to index.html