Forum Moderators: Robert Charlton & goodroi
Should I change these links to root relative or absolute links?
I can't seem to find any recent info on the href tag. Are people still using this? How does the href tag work in a page if my pages are broken down by numerous folders and subfolders?
../ means go one directory closer to the root. That's usually simple to get right, as long as you include the right number of occurrences.
Sometimes errors happen when webmasters intend to point further from the root -- that is, deeper into the hierarchy. The accident comes up by accidentally beginning the href value with a forward slash. That begins the relative url at the domain root, instead of pointing one subdirectory further into the directory structure as was intended.
Root relative urls are more accident proof than document relative urls, as long as you remember to include all the subdirectories in the filepath. And if you can spare the extra charaters, fully qualified absolute urls are the safest.