This question has already been answered:

I have such a question - how to make a link on a local site to go to another page of my site (previously created a separate html document) Thanks in advance.

Reported as a duplicate by participants 0xdb , Suvitruf , MSDN.WhiteKnight , dlarchikov , Sergey Glazirin 21 May '18 at 9:00 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    1 answer 1

    You need to use an example of a relative link.

    <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Тег А, атрибут href</title> </head> <body> <p><a href="../../example/knob.html">Относительная ссылка</a></p> <p><a href="http://htmlbook.ru/example/knob.html">Абсолютная ссылка</a></p> </body> </html>