I am trying to find a guide to explains how browsers format “links” that are contained within href tags. For example:
What does the browser do with the following types of tags:
- /attorneys
- ?p=1&Name=A
- attorneys
The reason I want the info is because I am currently formatting links in a very inefficient way, and would like to write my own script to handle this task. Everytime I create a script on my own, though, it misses the mark and some links inevitably dont work – so there must be some rules that I am missing.
Thanks for the help!
Neil
unchanged
Most languages have a library that will do this for you, and that’s what you should use. In ruby for example it’s URI: