473,385 Members | 1,834 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.

Can a picture href a website using variables? Or what's this?

Hello;

Admittedly, I'm very new to HTML, and this is my first post to any
newsgroup, so please go easy. I was looking at the html code for an email I
received and noted an href statement that looked very unusual. The statement
was:

<a href=3D"http://www.%76%69t%2D%63%6F.com">
<INPUT TYPE=3D"submit" VALUE=3D"Order Here" style=3D"font-family: Verdana;
color: #3F79C0; ">

The site noted in the html code is: http://www.%76%69t%2D%63%6F.com and
when I cut and paste it directly into my browser address window it actually
resolves to the site http://www.vit-co.com/main.php

Question 1: What does the "3D" mean in html?
Question 2: Are the "%76, etc..." is that a variable of some kind? Can a
variable be used for a host name or part of a host name using an html
statement? (Or is this example above just a bizzare host name and DNS is
forwarding to the other site name?)
Question 3: Can any characters be added to a host name (like the % symbol )
that are later ignored (or stripped away) by the html code just before
sending the request to a DNS server to resolve the name to an IP number?
Kind of like the way the exclamation point comments <!--comment--> in the
html are stripped away and ignored by the browser before it displays the
page.

Thanks,
Don
html newbie


Jul 20 '05 #1
2 5406
In article <l1N3b.297975$Ho3.42410@sccrnsc03> in
comp.infosystems.www.authoring.html, Don Clark <Do******@mchsi.com>
wrote:
Hello;

Admittedly, I'm very new to HTML, and this is my first post to any
newsgroup, so please go easy. I was looking at the html code for an email I
received and noted an href statement that looked very unusual. The statement
was:

<a href=3D"http://www.%76%69t%2D%63%6F.com">
<INPUT TYPE=3D"submit" VALUE=3D"Order Here" style=3D"font-family: Verdana;
color: #3F79C0; ">
The email was sent to you using an encoding called "quoted-
printable". Q-P changes any 8-bit character into a three-character
sequence comprising an equal sign and a two-digit hex number. For
instance, the acute-accented-e is character 233 (in ISO-8859-1
coding, which most English-language Windows machines use), and 233
decimal is E9 hex, so the sequence =E9 in quoted-printable stands
for an e-with-accute-accent.

Of course if the = sign leads off a 3-character sequence, there has
to be some way to represent the = sign itself. Since it is ASCII
character 61, and 3D is hex for 61 decimal, =3D stands for an equal
sign.

Now if your mailer was set up to interpret quoted-printable, this
would all have been invisible to you. But you might want to suggest
to your correspondent not to set quoted-printable unless they are
actually sending 8-bit characters, which probably they are not.

The codes %xx are "escapes" used in URLs to represent characters
that are not legal in URLs, like space and >. %76 means character
number 76 hex or 118 decimal, which is a lower-case v. There is no
reason to transmit a "v" in a URL in this fashion, other than to
obscure what the URL is.
The site noted in the html code is: http://www.%76%69t%2D%63%6F.com and
when I cut and paste it directly into my browser address window it actually
resolves to the site http://www.vit-co.com/main.php
And now you know why. %69 means lower-case i, and so on.
Question 1: What does the "3D" mean in html?
Nothing whatever. The three-character sequences beginning with the =
sign are part of a mail and news transport protocol (and an
obsolescent one at that), not part of HTML or URLs.
Question 2: Are the "%76, etc..." is that a variable of some kind?
No. For more, see section 2.4 of
http://www.cis.ohio-state.edu/cs/Ser...xt/rfc2396.txt
Question 3: Can any characters be added to a host name (like the % symbol )
that are later ignored (or stripped away) by the html code just before
sending the request to a DNS server to resolve the name to an IP number?


I don't understand this question, so let me try to answer it anyway.
:-)

The "%" in URLs is not a character on its own, but the first
character of a three-character escape sequence. Browsers should all
change any escape sequences in a URL into the appropriate single
character. For instance, a URL containing the sequence %7E actually
contains the single character ~, and any browser should make the
change for you.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #2
Don Clark wrote:
The statement was:
HTML is not a programming language and therefore does not have
'statements'. It does have elements, delimited by tags.
Question 1: What does the "3D" mean in html?
"=3D" is the 'quoted-printable' representation of the equals sign
("="). I'm going to assume this came out of some spam, because that's
generally where you see that.
Question 2: Are the "%76, etc..." is that a variable of some kind?
%xx is the correct way to escape special characters in a URL. It also
happens to work with non-special characters; in this case the %xx
representations are an attempt at hiding the URL in the message
(possibly as a way of evading spam filters, though I can't say for
sure) which are resolved to the actual characters when your browser
parses the URL.
Question 3: Can any characters be added to a host name (like the %
symbol ) that are later ignored (or stripped away) by the html code
just before sending the request to a DNS server to resolve the name
to an IP number?


No. Why would you want to do this?

(I don't believe you can even put HTML comments inside a string literal
like the href attribute of an A element. I'm presently too busy to
check, however.)

Owen
Jul 20 '05 #3

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

Similar topics

6
by: pat | last post by:
Is it possible in anyway to use a variable that is initialied *after* its use. What I am trying to achieve is the following, i.e. ,using a PHP variable that is initialised later to display a...
8
by: Eric Bragas | last post by:
What is this? <img src="{$ ImagesDir}/photo.gif"> I KNOW what an HTML image tag looks like. But what do you call that in the file source? Is it like a virtual directory in IIS? It's some type...
17
by: Woody Splawn | last post by:
I am finding that time after time I have instances where I need to access information in a variable that is public. At the same time, the books I read say that one should not use public variables...
11
by: sm | last post by:
Hi All, Can anybody give me the syntax to insert a record into SQL server through VB code using variables? The following statement is failing! sInsertQuery = "INSERT INTO TestTab (Col1, Col2,...
4
by: Ian | last post by:
Hi, Hopefully a simple question but my brain is hurting... I want to make a regex substitution, using search and replace patterns contained in variables. What I want to do is: $f =...
4
by: Freedolen | last post by:
Hi All, I had a perl script which is used to login in a web page, but it gives the error as "301 Moved Permanently". What does this means and how can it be rectified? Can anyone help on this? ...
5
by: Rajkiran R.B. | last post by:
I want to log in to a website using C# code.. The main aim is to check whether the username and password I provide is correct or not. I used the following code bool somefunction() {...
6
by: tinman486 | last post by:
Im new to the whole javascript game, I know pretty much just enough to be dangerous with no real substance. Anyway Im trying to populate a DIV with a website using the URL as an inner html source ...
0
by: Alex T | last post by:
I want to copy a website that is already in source format; ie. the website is a source of another website. How do I do this using C++?
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: 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
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?
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.