Why Are Some Of My Html Internal Links Working And Others Not?
Solution 1:
You have smart quotes
“
”
in all but the first link. Those smart quotes are considered part of the URL which causes the browser to resolve your URLs incorrectly.Make sure that OS X isn't automatically converting your double quotes into smart double quotes as you type them. This can happen even while TextEdit is in plain text mode. Go to Edit > Substitutions in TextEdit and make sure Smart Quotes is unchecked. You can also disable this system-wide in System Preferences > Keyboard > Text > Use smart quotes and dashes. You can also opt for a fully-featured source code editor like Sublime Text, rather than using TextEdit.
Solution 2:
You are missing
.htm / .html
in links<ulid="menu"><li><ahref="file:///Users/tamborine/Downloads/about_page.html">About</a></li><li><ahref="file:///Users/tamborine/Downloads/the_therapist_page.html">The Therapist</a></li><li><ahref="file:///Users/tamborine/Downloads/pay_what_you_can_page.html">Pay what you can</a></li><li><ahref="file:///Users/tamborine/Downloads/projects_we_support_page.html">Projects we support</a></li><li><ahref="file:///Users/tamborine/Downloads/resources_page.html">Resources</a></li><li><ahref="file:///Users/tamborine/Downloads/prices_pag.html">Prices</a></li><li><ahref="file:///Users/tamborine/Downloads/faq_page.html">FAQ</a></li></ul>
Solution 3:
Try typing all folder-names in small. And change in html also, i've ran into that couple of times
Solution 4:
I'll assume that you understand that you are linking to files on your computer -- this won't work if you try to put your webpage online, but it will work if you open the files locally.
I'm also assuming that all the files you're trying to link to are actually present in your downloads folder.
My assumption is that there is a typo somewhere in the filepath. It could be a case-sensitivity issue, or a file extension issue, or something else. The easiest way to eliminate this possibility is to open the file you want to link to in your browser. You might be able to just double-click on it, but if that doesn't work, you can open your browser and use
file
>open
(orctrl+O
/cmd+o
). Once the file is open, select everything in the URL bar and copy/paste it directly into your HTML. Do this for all the pages you're linking to, and if the links still don't work, something else is wrong and we'll need more details.
Post a Comment for "Why Are Some Of My Html Internal Links Working And Others Not?"