<h2> Links - Bad?

This is a discussion on "<h2> Links - Bad?" within the Starting Out section. This forum, and the thread "<h2> Links - Bad? are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 6th, 2007, 13:54
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
<h2> Links - Bad?

Quick question.

Is it incorrect to do the following.

Code: Select all
<h2><a href="#">Example</a></h2>
If so, why?

Thanks,
Pádraig
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 6th, 2007, 14:32
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <h2> Links - Bad?

I have recently gone on the basis that you shouldn't have anchors within a header element, mainly because Ryan told me not to but I honestly can't see a reason why they shouldn't be. That said I try not to where possible. But take a blog archive, for example, you may have quite a few h2's on a page as the article titles and those titles would have to link to the full document. As longs as it's all correctly nested then I see no reason why you shouldn't.

If anyone has a good reason not to put anchors in headers then please let me know. Is there some seo or accessiblity issue that I am unaware of?

Pete.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 6th, 2007, 14:37
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <h2> Links - Bad?

Well I'd say the reason you wouldn't is because a headline is just that, a headline. A headline isn't a link.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 6th, 2007, 14:41
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <h2> Links - Bad?

So it would probably confuse Google bots, and direct them around your site, while they aren't reading your pages?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 6th, 2007, 14:57
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <h2> Links - Bad?

But why shouldn't a headline be link. I've been doing some research and I can't find much on the subject. And there is nothing that says don't do it. Yes what goes between hx tags should be a headline or its equivalent but that doesn't mean it cannot be a link. Header elements are use to create structure within a document. A heading or subheading may after an intro lead to a nother page where there is more information.

Would you advocate not linking blog titles in an archive? In situation where you have a heading that you want to link, I would suggest linking it. The alternative woule be to have 'Read more...' text or something similiar alongside the header which is bad practice. Link text should be descriptive. So a h2 that is a link with text saying "An article on cheese" is of more value than a link saying "Read more..", in my opinion. As I said originally though, if it isn't necessary then don't do it and I can't think of many cases when it would be necessary but I can't sse how it would be damaging.

Pete.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 6th, 2007, 15:03
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <h2> Links - Bad?

I think I will go with the "read more" option then lol.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jul 9th, 2007, 18:57
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <h2> Links - Bad?

There's nothing fundamentally wrong with making headings into links. It's entirely possible that a piece of text could have a structural role of both heading and link.

In most cases it feels a bit odd, however (to me, anyway).

With regard to "news snippets", another option is to mark them up as a definition list, with the <dt> as the "heading" and the <dd> as the short description.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jul 9th, 2007, 19:21
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <h2> Links - Bad?

Nice to see you again mike.

At any rate I agree, as I've said, and sometimes I will make headings links as well. Though there are very few situations in which I would do this.

As goes the definition list, Mike, I think that is stretching their use a little far. I wouldn't use a dl like that, I see the logic but I don't think the element fits that use well enough. It's a tricky one though.

Pete.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 9th, 2007, 23:15
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <h2> Links - Bad?

Quote:
Originally Posted by pa007 View Post
Nice to see you again mike.
Back from climbing, shortly to go caving. It's a hard life

Quote:
As goes the definition list, Mike, I think that is stretching their use a little far. I wouldn't use a dl like that, I see the logic but I don't think the element fits that use well enough. It's a tricky one though.
The <dl> element certainly causes disagreement among semantics geeks (such as me, and, I venture, you)

The W3C are remarkably laconic about the correct uses of <dl>.

Some designers say <dl> should only be used to mark up a definition of terms:

Code: Select all
<dl>
<dt>Carrot</dt>
<dd>Orange root vegetable of humorous shape. Consumed in vast quantities by Robert Kilroy Silk.</dd>
<dt>Potato</dt>
<dd>Tuber that embarrassed Dan Quayle.</dd>
<dt>Potatoe</dt>
<dd>See Dan Quayle</dd>
</dl>
Other designers consider the term "definition" to be more abstract. You can use it as a way of attaching a title (<dt>) to connected information (<dd>).

Of course, a heading does the same job; and in most cases, headings are the right element. But sometimes a simple title-information pairing does not merit a heading. Pull-out boxes, for example: those short highlighted boxes with titles such as "Key tip", "Did you know?", "Fun fact", and so on.

For those, I would use a <dl>. This presents well when stylesheets are off, and it avoids confusing the structure of the document with lots of low-level headings.

The point here is rather subtle. Headings <h1> through <h6> create a hierarchical structure to a document. This has two semantic properties: containment and importance. The <h1> contains all the other headings; they are sub-headings. The <h1> is also the most important heading on the page (you can define importance in terms of how readers use headings to scan a page).

But not all information can (or should) be hierarchically structured. Sometimes you want to emphasise an element without giving it a higher structural weighting in the document. Emphasis does not always mean "this is more important"; sometimes it means "this is different", "this is another way of looking at things", or "this is an aside".

You can use <dl>s to emphasise title-information pairings, without being forced to make the title part of the main document structure.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
bad, good, links

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PR4 links for sale...links in an excellent position agent14 Link Building and Link Sales 4 Sep 19th, 2008 16:09
Msie doesn't make my links links.. delusion Web Page Design 7 Nov 7th, 2007 08:05
PR 5 Links available for recip links GARY Link Building and Link Sales 1 Aug 19th, 2006 09:52
Blured Links (image links) bruno89 Web Page Design 2 Jul 25th, 2006 14:48
Different coloured links without modifying links? Webforumz Staff Web Page Design 12 Aug 29th, 2003 18:48


All times are GMT. The time now is 05:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42