Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9304499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:43:21+00:00 2026-06-18T23:43:21+00:00

I keep hearing that W3C recommends to use ; instead of & as a

  • 0

I keep hearing that W3C recommends to use “;” instead of “&” as a query string separator.

We recommend that HTTP server implementors, and in particular, CGI
implementors support the use of “;” in place of “&” to save authors
the trouble of escaping “&” characters in this manner.

Can somebody please explain why “;” is recommended instead of “&”?

Also, i tried using ";" instead of "&". (example: .com?str1=val1;str2=val2 ) . When reading as Request.QueryString["str1"] i get “val1;str2=val2“. So if ";" is recommended, how do we read the query strings?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T23:43:22+00:00Added an answer on June 18, 2026 at 11:43 pm

    As the linked document says, ; is recommended over & because

    the use of the “&” character to separate form fields interacts with its use in SGML attribute values to delimit character entity references.

    For example, say you want your URL to be ...?q1=v1&q2=v2

    There’s nothing wrong with & there. But if you want to put that query into an HTML attribute, <a href="...?q1=v1&q2=v2">, it breaks because, inside an HTML attribute, & represents the start of a character entity. You have to escape the & as &amp;, giving <a href="...?q1=v1&amp;q2=v2">, and it’d be easier if you didn’t have to.

    ; isn’t overloaded like this at all; you can put one in an HTML attribute and not worry about it. Thus it’d be much simpler if servers recognised ; as a query parameter separator.

    However, by the look of things (based on your experiment), ASP.Net doesn’t recognise it as such. How to get it to? I’m not sure you can.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep hearing that the server side ASP .NET AJAX controls (like UpdatePanels) are
I keep hearing that in .net 3.5 you should use IEnumerable over a List,
Hey there, I keep hearing over and over again that I should ALWAYS use
I keep hearing that catch (Exception ex) Is bad practise, however, I often use
I keep hearing that Android applications should try to limit the number of objects
I keep hearing that branching in git is so much easier than in SVN,
What is some good software that is written with WPF? I keep hearing about
I keep hearing that it's bad practise to store large object collections / anything
I keep hearing about thread safe. What is that exactly and how and where
I keep hearing that PHP has overhead. For example a C++ int uses 4

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.