In order to keep track of AJAX changes on a webpage, I will be constantly adding to or changing the hash fragment. Is it valid to append a hash to a URL without adding a question mark first?
Example:
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Yes – it is perfectly valid for URLs to have a fragment identifier (denoted by a hash) without a querystring (denoted by a question mark).
As RFC-3986 shows, both the query and fragment parts are optional and unrelated in terms of their optionality.