Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

123
Views
¿Cómo puedo hacer que el enlace de anclaje # cuando la URL visitada directamente se centre en el navegador?

por ejemplo tengo esto

 <a style="text-decoration:none;" href="#section2">Hello World</a>

y cuando proporcioné la URL a otra persona como, por ejemplo, example.com/test.html#section2 y la visitó, quiero que el navegador muestre o se centre en Hello World, que es el contenido que está vinculando a href

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Especifique el "id" del elemento que desea que esté a la vista cuando visite ese enlace:

 <a href="#section2">Go to Section 2</a> <div> <h1 id="section2">Section 2</h1> </div>

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!