Search code examples
hashseouri-fragment

Can a search engine link to a certain section of an HTML file?


If I have a page divided in sections/fragments, that are linked to within the page with anchors, like this:

<div class="menu">
    <a href="#sec1">Section 1</a>
    <a href="#sec2">Section 2</a>
    <a href="#sec3">Section 3</a>
</div>

<div class="content">
    <a name="#sec1"></a>
    <h2>Section 1</h2>
    <p>Bla bla bla...</p>
</div>

... can search engines like Google find those relationships and present them as hashed links in the search results, like this?

http://www.somepage.com/somefile.html#sec1

The reason I ask is because I find document fragments convenient for unobtrusive tabbed layouts in HTML. But the user must be able to find the content of a specific tab quickly via search engines.

Thank you /J


Solution

  • Google does not link to hash tags in general but there are a few useful tidbits you can do with hash links nonetheless. Here is a link to an authoritative article on the subject:

    http://www.seomoz.org/blog/whiteboard-friday-using-the-hash