Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

178
Visualizações
How to make a link from one HTML document to another HTML document and also includes a quick link?

I would like to link from one page to the other. But it should also be scrolled down after I came to the other document. I don't know if you can do that with this code... I know that you can use it to link to other sites and also make quick links, but is that also possible at the same time? also looked at some other posts, but they are too complex for my brain. xD

LG JJ

<a name="anker" href="#anker"></a>

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Yes, you can link to an item from another file using /file#id adress. Take a look at this example.

Inside file1.html:

<h1>This is file 1</h1>
<a href="file2.html#item">Link</a>

Inside file2.html:

<h1>This is file 2</h1>
<div>
    Something
</div>
<p id="item">Hello</p>

for smooth scrolling effect use

html{
    scroll-behavior: smooth;
}

and link this to file2.html.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda