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

Link starts with <br />

Hi all,

If you are using IE, Netscape, Mozilla or, I would guess, several
other browsers, and if you put the cursor over a link (without
clicking) you can see the address of the new web page at the bottom
of the browser window.

Consider now this HTML file:

<html>
<head>
<title>Link</title>
</head>
<body>
a<a href="<br />http://www.abc.com">b</a>c
</body>

The link has a stupid error: it starts with <br />. Now, suppose that
I put this HTML file at the web and that its URL is, say,
http://www.I_love_spam.com. My question is: why is it that if I use one
of the above mentioned browsers to read this file and if I put the
cursor over the link, instead of simply seing "<br />http://www.abc.com"
what I get is "http://www.I_love_spam.com/<br />http://www.abc.com"?

Best regards,

Jose Carlos Santos
Jul 20 '05 #1
2 1724
José Carlos Santos:
<a href="<br />http://www.abc.com">b</a> My question is: why is it that if I use one
of the above mentioned browsers to read this file and if I put the
cursor over the link, instead of simply seing "<br />http://www.abc.com"
what I get is "http://www.I_love_spam.com/<br />http://www.abc.com"?


If the link adress would be e.g. "SOMENONSENSE" and the URL of the page
would be "http://somewhere", then you would see
"http://somewhere/SOMENONSENSE". Same thing.

The "http://" part is not treated as a normal "http://" since the adress
doesn't start with "http://". It starts with "<br />".

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #2
Bertilo Wennergren wrote:
My question is: why is it that if I use one
of the above mentioned browsers to read this file and if I put the
cursor over the link, instead of simply seing "<br />http://www.abc.com"
what I get is "http://www.I_love_spam.com/<br />http://www.abc.com"?


If the link adress would be e.g. "SOMENONSENSE" and the URL of the page
would be "http://somewhere", then you would see
"http://somewhere/SOMENONSENSE". Same thing.

The "http://" part is not treated as a normal "http://" since the adress
doesn't start with "http://". It starts with "<br />".


Sure. Sorry for my stupid question.

Best regards,

Jose Carlos Santos
Jul 20 '05 #3

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

Similar topics

9
by: Francesco Moi | last post by:
Hello. I'm trying to build a RSS feed for my website. It starts: ----------------//--------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE rss PUBLIC "-//Netscape...
4
by: fis | last post by:
Hi all, I've problem because there are needed break lines in my texts on the web site but i can't do it :( My pipeline looks like: XMS -> I18N -> XSLT -> HTML I have lot of texts in my...
6
by: Lasse | last post by:
I have done this simple function, it seems to work as intended, to solve a problem i have had for a while. I couldnt find any sample around that was working for me. I would like to test it with...
7
by: noor.rahman | last post by:
I have an XML file that stores data from an HTML form. I use XSL to display the data in HTML format. The data may have newline characters. However, XSL is not displaying the newlines properly in...
7
by: Rocky Moore | last post by:
I have a web site called HintsAndTips.com. On this site people post tips using a very simply webform with a multi line TextBox for inputing the tip text. This text is encode to HTML so that no...
2
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all...
1
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
7
by: Nathan Sokalski | last post by:
Something that I recently noticed in IE6 (I don't know whether it is true for other browsers or versions of IE) is that it renders <br/and <br></br> differently. With the <br/version, which is what...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.