+ 1

How do you link js filles to HTML and how do you create more pages on your website or blog ?

31st Jan 2020, 1:45 PM
Jones Sichone
Jones Sichone - avatar
7 Antworten
+ 5
<a href="page2.html"> goto page 2 </a>
31st Jan 2020, 2:35 PM
Pedro H.J
Pedro H.J - avatar
+ 5
<script src="myscripts.js"></script> See this link https://www.w3schools.com/tags/att_script_src.asp
31st Jan 2020, 1:47 PM
Pedro H.J
Pedro H.J - avatar
+ 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.
31st Jan 2020, 2:13 PM
Hiro
Hiro - avatar
+ 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/
31st Jan 2020, 2:35 PM
Hiro
Hiro - avatar
+ 1
Thanks guys 👍🏻👍🏻👍🏻
31st Jan 2020, 3:21 PM
Jones Sichone
Jones Sichone - avatar
0
What of creating more pages on your website or blog
31st Jan 2020, 1:59 PM
Jones Sichone
Jones Sichone - avatar
0
Nd how do you link them to index.html
31st Jan 2020, 2:17 PM
Jones Sichone
Jones Sichone - avatar