I try to use the anchor tag with the include I have. On my Index.php I got a little "nav bar" with some anchor tags. I also included the file "text.php" in my code. This file is in the Folder "texte". The anchor tags should bring the user to the position in text.php but it only load 404 - page not found.
How I include the file:
<?php include 'texte/text.php'; ?>
I declare my "start-word" like this:
<a href=“texte/text.php#InfoAnker“>Informationen</a>
And my anchor like this:
<h2 id="InfoAnker"> Informationen </h2>
I also tried <a href=“#InfoAnker“>Informationen</a>
because of the include but it came out the same result.
Any ideas?