473,385 Members | 1,606 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,385 software developers and data experts.

Malformed link?

This is probably something very obvious, but I just can't see it.

At http://www.douglaidlaw.net/boykett/timeline.html the last line should
contain a link, and the linking text should be an abbreviated version of
it. Instead, the full link is showing up as plain text and the link tags
are ignored.

What have I done wrong?

Doug.
--
Registered Linux User No. 277548. My true email address has hotkey for
myaccess.
Happiness is nothing more than good health and a bad memory.
- Albert Schweitzer.

Dec 16 '05 #1
2 3405
Doug Laidlaw <la******@myaccess.com.au> wrote:
This is probably something very obvious, but I just can't see it.

At http://www.douglaidlaw.net/boykett/timeline.html the last line should
contain a link, and the linking text should be an abbreviated version of
it. Instead, the full link is showing up as plain text and the link tags
are ignored.


It contains the following markup:

<a name="http://www.hyperhistory.com">
http://www.hyperhistory.com/online_n2/History_n2/a.html</a>

This does not define a link, only a potential destination anchor for a link.
You need to use the 'href' attribute instead of a 'name' attribute. Besides,
you probably wanted to have the URLs reversed:

<a href="http://www.hyperhistory.com/online_n2/History_n2/a.html">
http://www.hyperhistory.com</a>

It's however usually a poor idea to use a URL as link text. Link texts are
meant to be readable as such, and it's the 'href' value that needs to be a
URL. Besides, it's misleading to use a URL different from the one in the
'href' attribute. I would suggest something like

<cite><a href="http://www.hyperhistory.com/online_n2/History_n2/a.html">
HyperHistory</a></cite>

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Dec 16 '05 #2
Jukka K. Korpela wrote:
Doug Laidlaw <la******@myaccess.com.au> wrote:
This is probably something very obvious, but I just can't see it.

At http://www.douglaidlaw.net/boykett/timeline.html the last line should
contain a link, and the linking text should be an abbreviated version of
it. Instead, the full link is showing up as plain text and the link tags
are ignored.


It contains the following markup:

<a name="http://www.hyperhistory.com">
http://www.hyperhistory.com/online_n2/History_n2/a.html</a>

This does not define a link, only a potential destination anchor for a
link. You need to use the 'href' attribute instead of a 'name' attribute.
Besides, you probably wanted to have the URLs reversed:

<a href="http://www.hyperhistory.com/online_n2/History_n2/a.html">
http://www.hyperhistory.com</a>

It's however usually a poor idea to use a URL as link text. Link texts are
meant to be readable as such, and it's the 'href' value that needs to be a
URL. Besides, it's misleading to use a URL different from the one in the
'href' attribute. I would suggest something like

<cite><a href="http://www.hyperhistory.com/online_n2/History_n2/a.html">
HyperHistory</a></cite>


Thank you. All noted. Actually, I did think that the <a name=.. looked
unusual, but it was put there (I think) by Nvu. I edited the original
extensively, and thought that in the end, I had it right.

Doug.
--
Registered Linux User No. 277548. My true email address has hotkey for
myaccess.
The most profound joy has more of gravity than of gaiety in it.
- Michel de Montaigne.

Dec 17 '05 #3

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

Similar topics

8
by: KC | last post by:
I have written a parser using htmllib.HTMLParser and it functions fine unless the HTML is malformed. For example, is some instances, the provider of the HTML leaves out the <TR> tags but includes...
1
by: Kiran B. | last post by:
hello, Im getting this error everytime i load this page. malformed header from script. Bad header=*** You don't have the (right): c:/program files/apache group/apache/cgi-bin/fig28_18.py I...
8
by: Magnus Lie Hetland | last post by:
According to The Sgmlop Module Handbook , the handle_entityref() callback is called for "malformed character entities". What does that mean, exactly? What is a malformed character entity? I've...
3
by: Gérard Talbot | last post by:
About a month ago, I've reported a crash bug at a wiki webpage where developers of MSIE 7 can read feedback from developers. The strange thing is that a particular malformed webpage can crash MSIE...
6
by: sviau | last post by:
http://www.mls.ca/PropertyDetails.aspx?vd=&SearchURL=%3fMode%3d0%26Page%3d1%26vs%3d1%26rlt%3d%26cp%3d%26pt%3d1%26mp%3d0-0-0%26mrt%3d-1-0-0%26Beds%3d0-0%...
1
by: Patrick | last post by:
Problem I have an ASPX file, with a table of 3 columns, 2 rows with a usercontrol in the middle column (in the code snippet stated below, although in reality, the left hand column would also...
1
by: Terry Olsen | last post by:
I download xml logs from several servers every day and read the data out of them using the XmlTextReader. But about 10% of them each day throw exceptions because they are not well formed. I don't...
3
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, one of my .aspx pages is called using a URL like: http://localhost/Test.aspx?returnUrl=http%3a%2f%2flocalhost%2fBackPage.aspx%3fmyParam%3dtest But when I call...
1
by: Shalako | last post by:
I check my error log and see these entries: malformed header from script. Bad header= Missing gauge reports are ind: padata.pl /perl/pema/padata.pl did not send an HTTP header malformed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.