You are here: Re: The <link> Tag « HTML « IT news, forums, messages
Re: The <link> Tag

Posted by Steve Pugh on 04/06/06 02:26

sorry.no.email@spamsux.com wrote:


> I have just finished adding a series of link (head) tags to my
>father's family history site:
>
>http://people.aapt.net.au/~adjlstrong/strongs/chapter_8.html
>
> The tags are:
>
><link href="chapter_7.html" rel="prev" />
><link href="chapter_9.html" rel="next" />
>
> I suspect that it will make no difference but should the first tag
>actually be:
>
><link href="chapter_7.html" rev="prev" />

No.
rev="rev" would mean that Chapter 8 is the previous page to Chapter 7
which is not usually the case.

Rev and rel work like this.

If A has a rel="foo" with respect to B
Then B has a rev="foo" with respect to A.

So in your original example, you could write
<link href="chapter_7.html" rel="prev" rev="next" />
<link href="chapter_9.html" rel="next" rev="prev" />

As Chapter 7 is previous to Chapter 8, and hence the reverse is true:
Chapter 8 is next to Chapter 7. Likewse, Chapter 9 is next to Chapter
8 and the reverse is that Chapter 8 is previous to Chapter 9.

However, other than rev="made" there is no support at all for rev
values so you might as well forget them entirely.

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация