473,224 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

Two Questions on Link REL/REV and dead-end hyperlinks.

Hello all,

I'm making a calendar section in a website. Each month is its own page and
navigated by Previous / Next links. I have it working now with standard
hyperlinks, but I want to learn how to use Link Rel and Link Rev commands to
do the navigation.

At the W3C website it shows how to use the Link Rel and Link Rev in the
<head> section:

<HEAD>
....other head information...
<TITLE>Chapter 5</TITLE>
<LINK rel="prev" href="chapter4.html">
<LINK rel="next" href="chapter6.html">
</HEAD>
(copied and pasted from the site)

But, how do I make the associated hyperlinks in the body? The details for
that aren't clear to me . I'm not sure of it's usable for that at all. It
seems like it may only be for search engines and other search capabilities
to index a site's heirarchy.

Also, how to I make a hyperlink that goes nowhere, like a dead end? I
basically want the hyperlink "look" but if someone was to click on it, it
should just go nowhere. I'll be using a mouseover tool-tip effect on it
instead. I've seen <a href="#"> used, but when I use it snd click, I get a
directory tree. How would I do that?

Thanks in advance, everyone.

--
Viken K.
Dec 20 '05 #1
9 2943
Viken Karaguesian wrote:
At the W3C website it shows how to use the Link Rel and Link Rev in the
<head> section. But, how do I make the associated hyperlinks in the body?
With regular <a> elements.
The details for that aren't clear to me . I'm not sure of it's usable for
that at all. It seems like it may only be for search engines and other
search capabilities to index a site's heirarchy.
Users do need a browser that supports it ...

http://dorward.me.uk/tmp/nav.png

.... but its very nice to use as the links are always in the same place, and
scrolling / large amounts of content don't move them (so you can just hold
the mouse in place and keep clicking through).
Also, how to I make a hyperlink that goes nowhere, like a dead end? I
basically want the hyperlink "look" but if someone was to click on it, it
should just go nowhere.
Inviting people to click on something that doesn't respond to clicks? That's
a really bad idea.
I'll be using a mouseover tool-tip effect on it instead.


I suggest you use a <dfn>, <abbr> or whatever is appropriate along with some
CSS to make it stand out - but not to make it look like a link.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Dec 20 '05 #2
In our last episode,
<k4******************************@comcast.com>,
the lovely and talented Viken Karaguesian
broadcast on comp.infosystems.www.authoring.html:
Hello all, I'm making a calendar section in a website. Each month is its own page and
navigated by Previous / Next links. I have it working now with standard
hyperlinks, but I want to learn how to use Link Rel and Link Rev commands to
do the navigation. At the W3C website it shows how to use the Link Rel and Link Rev in the
<head> section: <HEAD>
...other head information...
<TITLE>Chapter 5</TITLE>
<LINK rel="prev" href="chapter4.html">
<LINK rel="next" href="chapter6.html">
</HEAD>
(copied and pasted from the site) But, how do I make the associated hyperlinks in the body?
You just said you had it working with standard hyperlinks.
Those are the ones in the body. Are they working or not?

Some browsers make links from the LINK elements in the head.
Others don't. You cannot control what the browser makes of such
links.
The details for that aren't clear to me . I'm not sure of it's
usable for that at all. It seems like it may only be for
search engines and other search capabilities to index a site's
heirarchy.
Yes, "browser" is commonly just a shorthand word for "user
agent," and that includes search engines. They may or may not
use the LINK elements to traverse sets of documents - or for
other purposes. You cannot control what the browser does with
this information.
Also, how to I make a hyperlink that goes nowhere, like a dead end? I
basically want the hyperlink "look" but if someone was to click on it, it
should just go nowhere.
What does that mean? How do you "go nowhere." If you just want
to be deceiptful and produce something that looks like a link,
but isn't, you can put it in a SPAN of a class that you then
style to look like an A element. If you want to cover the case
of a user who overrides your styling for A elements, you could
put it in A NAME with a class that you style like A HREF.
I'll be using a mouseover tool-tip effect on it instead. I've
seen <a href="#"> used, but when I use it snd click, I get a
directory tree. How would I do that?


Perhaps you could post a URL for a document that does this.

Whether you get a directory listing or not and when you do is
highly dependant on how your server is configured. If the
server allows this at all, you could try linking to a directory
that doesn't have any default document as defined in the server
configuration (i.e., no index.html, index.htm, index.shtml, etc.
- the list depending upon the server configuration). Most
servers can be configured to disallow directory listings
altogether. As there are differences in the way browsers
present directory listings, you probably cannot dummy up a
"directory listing" page that will look like the real thing in
all browsers.
--
Lars Eighner us****@larseighner.com http://www.larseighner.com/
Bac'n Bits: Humans don't know it's not bacon!
Dec 20 '05 #3
"Viken Karaguesian" <vikenkNO_SPAM@NO_SPAMcomcast.net> wrote:
At the W3C website it shows how to use the Link Rel and Link Rev in the
<head> section:
[...]
But, how do I make the associated hyperlinks in the body?
Prev/Next type navigation implemented via link elements provides a fully
independent navigation mechanism. However you can't rely on them since
not all browsers have a UI mechanism for them, and on those that do most
users will probably have it disabled. This means that you also have to
use regular hyperlinks in the body section, but there is no
"association" between these links and any corresponding <link> elements
in the document's head.

The principle of <link> type site navigation is a good idea in theory,
but in practice fatally flawed.
The details for
that aren't clear to me . I'm not sure of it's usable for that at all. It
seems like it may only be for search engines and other search capabilities
to index a site's heirarchy.


I doubt if for example the alternate language resource mechanism is
implemented in any search engine.

--
Spartanicus
Dec 20 '05 #4
On Tue, 20 Dec 2005 09:43:58 GMT, Spartanicus <in*****@invalid.invalid>
wrote:
The principle of <link> type site navigation is a good idea in theory,
but in practice fatally flawed.


Not fatally. Firefox does it very nicely with the Link Toolbar extension
Dec 20 '05 #5
> You just said you had it working with standard hyperlinks.
Those are the ones in the body. Are they working or not?


Yes, those work. Those are standard links. <a
href="december_2005.htm">. However, just for learning, I wanted to
figure out how to use the Link Rel / Rev.

I kind of envisioned a system where I would put the Link reference in
the <head> and in the body I would put something like
<a href="#next"> and the hyperlink would just go to the page listed in
the head.

But it seems to me now that Link Rel and Rev weren't designed to be
used that way.

Viken K.

Dec 20 '05 #6
> but there is no
"association" between these links and any corresponding <link> elements
in the document's head.


That's exactly what I wanted to know! At first, I thought that there
*would* be an association which would provide an easy Previous/Next
navigation system, but it seems like that's not what it was intended
for.

Viken K.

Dec 20 '05 #7
> Inviting people to click on something that doesn't respond to clicks? That's
a really bad idea.
I'll be using a mouseover tool-tip effect on it instead.


I suggest you use a <dfn>, <abbr> or whatever is appropriate along with some
CSS to make it stand out - but not to make it look like a link.


Well, to see an example of what I mean, go to
http://www.ssaes.org/test_site/calendar_2.htm

Mouse over "Wine Tasting Night" and a tool tip pops up. But, if it
didn't look like a hyperlink, people may not know to mouse over it and
would only stumble across it by mistake. It's only used as a tool tip
though - there is no actual hyperlink there. So if someone were to
click on it, I want there to be no response.

The working calendar model with Previous / Next links hasn't been
uploaded yet.

Viken K.

Dec 20 '05 #8
Viken Karaguesian wrote:
I suggest you use a <dfn>, <abbr> or whatever is appropriate along with
some CSS to make it stand out - but not to make it look like a link.
http://www.ssaes.org/test_site/calendar_2.htm Mouse over "Wine Tasting Night" and a tool tip pops up.
Well - assuming I use a mouse ... and have JavaScript turned on.
But, if it didn't look like a hyperlink, people may not know to mouse over
it and would only stumble across it by mistake. It's only used as a tool
tip though - there is no actual hyperlink there. So if someone were to
click on it, I want there to be no response.


Since it looks like a link, people _expect_ something to happen when they
click on it. Make it look like something other then plain text, but don't
make it look like a link.

Better yet - remove the need for JavaScript. Turn it into a link to a page
that gives details about the event.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Dec 20 '05 #9
In article <do*******************@news.demon.co.uk>,
David Dorward <do*****@yahoo.com> wrote:
Viken Karaguesian wrote:
I suggest you use a <dfn>, <abbr> or whatever is appropriate along with
some CSS to make it stand out - but not to make it look like a link.

http://www.ssaes.org/test_site/calendar_2.htm

Mouse over "Wine Tasting Night" and a tool tip pops up.


Well - assuming I use a mouse ... and have JavaScript turned on.

Better yet - remove the need for JavaScript. Turn it into a link to a page
that gives details about the event.


I have seen an example of doing a fancy tooltip with CSS at
http://home.wanadoo.nl/b.de.zoete/_t...p_and_css.html
however as usual IE6 can't do anything with it (you have to give IE a
title attribute). Also the content of the tooltip is inline in the
paragraph, so it is visible to search engines and speech user agents.

However if the original poster styled the calendar event to not look
like a link (but to look like something you should check), and included
a title attribute for people with Javascript turned off, that might
work. Javascript seems legitimate to me for decoration, provided the
information is provided in some other way.

--
http://www.ericlindsay.com
Dec 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Skip Montanaro | last post by:
(moving over from webmaster mailbox) scott> I'm sorry for bothering you, but I've tried to post to the Python scott> Tutor Mail List, tried to get someone from Bay PIggies to scott> respond, but...
2
by: Todd Cary | last post by:
What is the best groupd to use for HTML questions? Thanks.. Todd
6
by: nntp | last post by:
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them. <a disabled...
162
by: techievasant | last post by:
hello everyone, Iam vasant from India.. I have a test+interview on C /C++ in the coming month so plz help me by giving some resources of FAQS, interview questions, tracky questions, multiple...
56
by: Cherrish Vaidiyan | last post by:
Frinds, Hope everyone is doing fine.i feel pointers to be the most toughest part in C. i have just completed learning pointers & arrays related portions. I need to attend technical interview on...
6
by: Tex | last post by:
I am writting a survey system web application. I am using ASP.Net 2, C# and MS SQL 2005. I am able to store surveys and questions associated to the surveys just fine. The problem I am having is...
2
by: JS Smith | last post by:
Hello Dears We have collected Questions and answers for interviews after a long effort and you study these questions and its answers freely our website. If you have any query regarding to...
22
by: gustum | last post by:
Im graduating in the coming december. Anyone pls guide me where i can get c++ interview questions. I shall be very thankful to you if you provide me good link so any stuff if you have regarding...
12
by: Kevin | last post by:
Hey, I was hoping someone out here might be able to clue me in on some alignment issues I'm having. Hopefully I can explain this best through code below. ACSign and MyACSign functions below get...
4
by: bukzor | last post by:
Does anyone have a pythonic way to check if a process is dead, given the pid? This is the function I'm using is quite OS dependent. A good candidate might be "try: kill(pid)", since it throws an...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.