Forum Moderators: open
You have an index at the top of a single page document with anchor tags in the index section headings and sub-sections so you can click and jump to the relevant point in the page.
Any value for SEO?
Any thoughts on comparison between these tags and H headings in relation to SEO?
TJ
Any value for SEO?
Not that I'm aware of. But, the value to your visitors is of great benefit. I always work with named anchors (or bookmarks in FrontPage) when developing sites. Longer pages usually get the
<ol> or <ul> index at the top or left of the page. And then of course you have your back to top link after each section. This allows the user to jump back and forth between each named section quickly. If you can put the user one click less away from content, then it should be done. Named anchors are a great way to do this. Forget about any SEO benefit. As long as you've been around here, I'm sure you've seen the Mantra of think about your visitors first, the search engines will follow naturally.
Note: What we are talking about here are Named Anchors. Since the name attribute has been deprecated in XHTML, it is suggested that you utilize the ID element for anchorage.
12.2.3 Anchors with the id attribute [w3.org]
Yes, I know the score!
I've presented myself with the first single page document which is actually long enough to do justice to using anchors in this way, to make it manageable for users to negotiate it.
So I'll use them anyway - I was curious about SEO value as it's something I haven't seen talked about much on here.
TJ
<Edit>Many thanks for the ID tip</Edit>
I expect the SEO value to be very little.
The main reason I asked was I was thinking about, as you point out, the benefit of anchors in very long documents.
In that context, surely better for the user than H1, H2 etc heading tags?
In which case, you'd think that google might put as much weight on them as H tags?
TJ
Well you can have both: anchors are for links and Hx tags are for headings.
<Dunces Hat On>It's been a long day ;-)</Dunces Hat Off>
Rich, I have always done that in the past because, as sem4u says, that's suited the type of document in the best manner.
This particular document just lends itself to on page anchor navigation due to its structure.
The SEO value was purely curiousity, it wouldn't change the way I'd do it.
TJ
In that context, surely better for the user than H1, H2 etc heading tags?
When I structure long pages, I'm usually preceding sub-sections of that page with
<h> elements. I will typically point the named anchor to each <h> as that is where the user needs to start. For example... <ol>
<li><a href="file.asp#anchor1">Named Anchor</a></li>
</ol> And then my
<h> elements are labeled with the named anchor ID... <h2 id="anchor1">Named Anchor 1</h2>