Forum Moderators: open
Directory example...
domain.com/see&do/
Image example...
/graphics/nav/topbar/see&do/see&do.gif
Common sense suggests I should avoid them and rename stuff accordingly - particularly as Dreamweaver renames the '&' to the '&' entity.
the '&' is used as a concatenator for query strings in dynamic pages
... when there is a question mark in the url string.
For example: [example.com...]
A few years ago, I had set up a subdomain with the "&" character for one of my clients. That subdomain was pointing to a directory with the same name on my server.
Subdomain: [j&d.example.com...]
Directory: [example.com...]
There were NO problems at all.
I had some varied results on the w3 validator.
Sometimes it accepted the & when not in an url. Sometimes it rejected it.
I had just the "plain" result with w3c's validator (in both html 4.01 transitional AND strict): any instance of "&" anywhere on the page in question occasioned an error notation. Use of "&" fixed all the errors.
When to use escapes
There are three characters which should always appear in content as escapes, so that they do not interact with the syntax of the markup:
< (<)
> (>)
& (&)
You may also want to represent the double-quote (") as "
Are there problems in using the '&' character for site directories and image names?
The answer is NO.
It has nothing to do with CONTENT but with the FILENAME of a page/directory/image.
I have just set up a directory "te&st" and it validates as XHTML1.1.
Sometimes the best way to find out if things works, is just doing it.