user94628
user94628

Reputation: 3731

Button class in href tag

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

Answers (2)

ANJi
ANJi

Reputation: 27

<button type="button"> 

   <a class=" *** " href="helloworld.html"/>

   link name </a>

 </button>  // close tag /button

Upvotes: 0

EduSanCon
EduSanCon

Reputation: 1929

use current directory href="./whatever"

<a class="btn btn-sample btn-lg" href="./next.html">next page</a>

Upvotes: 2

Related Questions