Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Single Quote Versus Double Quote In A href link

 
Thread Tools Search this Thread
Old 06-12-2006, 09:18 PM   #1
Default Single Quote Versus Double Quote In A href link


Can someone please tell me in html if the following link is ok in html?
It seems to work fine in the browser but I am not sure if searchengine
will respect the the single quotes around the rel 'no follow' and if
the single quote around the http: is ok.

<a rel='nofollow' href='http://www.test.com/test.htm'>Dirk</a>

Your help with these two questions is much appreciated.

Thank you.



knee-dragger@hotmail.com
  Reply With Quote
Old 06-12-2006, 09:29 PM   #2
David Dorward
 
Posts: n/a
Default Re: Single Quote Versus Double Quote In A href link

knee- wrote:

> Can someone please tell me in html if the following link is ok in html?


By default, SGML requires that all attribute values be delimited using
either double quotation marks (ASCII decimal 34) or single quotation marks
(ASCII decimal 39).

http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
  Reply With Quote
Old 06-12-2006, 09:43 PM   #3
Philip Semanchuk
 
Posts: n/a
Default Re: Single Quote Versus Double Quote In A href link

In article < .com>,
knee- wrote:

> Can someone please tell me in html if the following link is ok in html?
> It seems to work fine in the browser but I am not sure if searchengine
> will respect the the single quotes around the rel 'no follow' and if
> the single quote around the http: is ok.
>
> <a rel='nofollow' href='http://www.test.com/test.htm'>Dirk</a>


That's fine. It would be an extremely poor search engine/browser/user
agent that didn't understand both single and double quotes.

HTH

--
Bye,
Philip
http://NikitaTheSpider.com/
Bulk HTML validation, link checking and more
  Reply With Quote
Old 06-13-2006, 01:42 AM   #4
JDS
 
Posts: n/a
Default Re: Single Quote Versus Double Quote In A href link

On Mon, 12 Jun 2006 21:29:38 +0100, David Dorward wrote:

> By default, SGML requires that all attribute values be delimited using
> either double quotation marks (ASCII decimal 34) or single quotation marks
> (ASCII decimal 39).


But the point here, really, is that the two are interchangeable, as long
as one closes single quotes with single quotes and double quotes.... well,
you get the idea.

to clarify: HTML does not differentiate between double and single quotes
WRT the OP's question

--
JDS |
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump