Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple Internal Links not working

This should be pretty straightforward, I am trying to create a "Table of Contents" that links to various parts of a long page...

This is what I tried:

<ul>
      <li><a href="#features">Features</a></li>
</ul>

Further down in the page...

<a name="features"></a>

Am I missing something? It simply never links as if the anchor is not linked properly.

I appreciate any advice in this regard.

Many thanks in advance!

like image 280
AnchovyLegend Avatar asked Jun 05 '13 15:06

AnchovyLegend


People also ask

What are the 3 types of internal links?

There are four types of internal links you need to know of: contextual links, navigational links, footer links, and image links.

Can you do too much internal linking?

The second problem is using too many internal links will dilute their value. One internal link can signal to Google that a page is important to the website, but it starts to seem less important as more links are added.

Does internal linking hurt SEO?

Internal links also connect your content and give Google an idea of the structure of your website. They can establish a hierarchy on your site, allowing you to provide the most important pages and posts more link value than other, less valuable pages. So using the right internal linking strategy can boost your SEO!


1 Answers

To those having a similar problem, I found out why it was not working.

Many elements on my page are floating elements. As a result, the browser cannot find a precise point to link to if the anchor target is not within a floated element. In other words, if the anchor tag is outside a floating element, and you have many floating elements on your page, internal links may not work properly. To fix this, place your anchor target within one of the floating elements.

like image 107
AnchovyLegend Avatar answered Sep 17 '22 17:09

AnchovyLegend