Search code examples
htmlhref

a href doesn't work in my project


I have a simple problem with my <a href=""> code: they don't open anymore...

It only worked one time, and then no more.

I don't know why... It would be great if someone can help me with this.

my code:

<div data-role="page" id="p1">
    <div data-role="header" data-theme="a" data-position="fixed" data-id="footer">  
    <a href="Destaque/Destaque.html" data-icon="home" data-iconpos="notext">Home</a>
</div

I tried a lot of things, but I didn't find out what the problem is.


Solution

  • Ok. i have find the answer for this problem.

    the path i have written was right and the problem was not the relative/absolute path.

    the only thing i have to add to this link is rel="external", because the html page that i want to open is in the sub-folder from my projecto.

    the following code show the right code for this situation.

    <a href="Destaque/Destaque.html" rel="external" data-icon="home" data-iconpos="notext">Home</a>