How to get the URL or anchor on a One-page

0

I am developing a One-page, and I would like that every time the client is in a session, he changes the address from www.teste.com.br to www.teste.com.br/tests or www.teste.com.br .com.br # testimonials, whatever.

I thought about using anchors, but I do not know if it's the right one, as this is also interesting for indexing the site.

    
asked by anonymous 26.08.2014 / 20:38

1 answer

1

You can link as follows:

<a href="#depoimentos">Depoimentos</a>

And you mark the position on the page like this:

<a id="depoimentos"></a>

So when someone clicks on the Depoimentos link the scrolling of the page will take to the element <a id="depoimentos"></a> .

    
26.08.2014 / 20:45