473,725 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5421
In article <l1N3b.297975$H o3.42410@sccrns c03> in
comp.infosystem s.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
1806
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 HTML Title, code snippet below. As it stands at present nothing is echoed! <html>
8
3005
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 of variable obviously, but can somebody tell me what it's called so I can research how it works? thanks.
17
5532
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 too much - that it's bad programming practice. Is there an easy way to deal with this? I would like to do things in the "Best Practices" way but at the same time I don't want to make a federal case out of it. This comes up over and over...
11
16230
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, Col3, Col4) Values(" & _ str1 & "," & dt1 & "," & str2 & "," & str3 & ")" where str1 = "col1"
4
12074
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 = "fred.abc"; $f =~ s/(.*)\.abc/$1.def/; print "$f\n";
4
8589
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? Code Snippet: use HTTP::Cookies; use HTTP::Request;
5
16390
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() { string username = textbox1.text;
6
4682
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 Here is my code I keep getting an error object expecte don line 58. Which I will highlight. Anyway Not only would i Like to know what that error is about but also if my logic is correct or if I can even do what im trying... and if not what other...
0
1131
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
8889
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9179
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9116
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.