Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Ezilon Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 06-27-2004, 08:47 PM   #1 (permalink)
Contributing Member
 
Join Date: 05-02-04
Posts: 166
iTrader: 0 / 0%
thing2b is liked by many
& in URLS for HTML validation

I was just validating my webpage with http://validator.w3.org as HTML 4.01 Transitional, and I got an error saying I have unencoded ampersands in my URLs. How many people use unencoded ampersands for their urls and how many encoded them? Does it matter?
__________________
Webmaster of http://pickbrains.com/
thing2b is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 06-27-2004, 09:46 PM   #2 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
I don't think people generally put those in URLs at all.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-28-2004, 05:20 AM   #3 (permalink)
Contributing Member
 
FGTH's Avatar
 
Join Date: 03-06-04
Location: NY, CT, CA, AZ
Posts: 552
iTrader: 0 / 0%
Latest Blog:
None

FGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to all
Most coders I know use ampersands in meta content to reduce the number of characters.

However, w3c compliancy requires using "&" in place of "&" which defeats the purpose (having less characters for "and").

So use "and" instead of "&".

If you don't care about following w3c validation regarding meta content, e.g. the title, description, etc..., then use "&" in meta content.

Some browsers display "&" correctly in the description, others do not.

I prefer using "and" to avoid these potential problems.
__________________
"90% of the game is half mental."
--Yogi Berra
Elizabeth Arden
FGTH is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-28-2004, 09:42 AM   #4 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
I think he was asking about URLs, not meta tags.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-28-2004, 10:01 AM   #5 (permalink)
Contributing Member
 
FGTH's Avatar
 
Join Date: 03-06-04
Location: NY, CT, CA, AZ
Posts: 552
iTrader: 0 / 0%
Latest Blog:
None

FGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to all
Whoops... you're right Jazzz...

In some instances, such as cgi/perl scripts contained in URIs, the ampersand does cause problems during w3c validation.

You can work around this by including the links within javascript.
__________________
"90% of the game is half mental."
--Yogi Berra
Elizabeth Arden
FGTH is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Validation and Flash Embed Tag smartfinds Coding Forum 9 08-26-2008 06:13 AM
Javascript or PHP validation? ATLien Coding Forum 23 04-20-2007 02:53 PM
Help me understand Validation. sachi Web Design Lobby 4 02-11-2007 02:32 PM
My first w3c validation awall19s brother SEO Forum 1 08-11-2006 09:56 AM
Validation For Forms Limit Coding Forum 4 01-08-2004 08:39 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 10:22 AM.
© Copyright 2008 V7 Inc