Reputation: 3731
When a user clicks the button it has a href
to another html page in the same folder as the current page to open.
But I get a 404 error, however it works for external websites.
This is the code:
<a class="btn btn-sample btn-lg" href="next.html">next page</a>
How could I correct this, thanks
Upvotes: 0
Views: 114
Reputation: 27
<button type="button">
<a class=" *** " href="helloworld.html"/>
link name </a>
</button> // close tag /button
Upvotes: 0
Reputation: 1929
use current directory href="./whatever"
<a class="btn btn-sample btn-lg" href="./next.html">next page</a>
Upvotes: 2