RaRa3 Posted March 8, 2015 Share Posted March 8, 2015 Hello i have a problem with my HTML code I have a link to a file that is on my computer but everytime i click the link it leads to an error. I am not sure why because the both files are in the same folder and i have done it before, I put in a website and it does work so I am not sure why my HTML wont open the link when at the home page. This is my code <a href=“Login.html”>Log In</a> Did i do something wrong? the file is named Login.html just like in the quotations Link to comment Share on other sites More sharing options...
Ingolme Posted March 8, 2015 Share Posted March 8, 2015 What program are you using to edit the HTML? 1 Link to comment Share on other sites More sharing options...
RaRa3 Posted March 8, 2015 Author Share Posted March 8, 2015 i use text edit and i used netbeans, but there the code looks perfectly fine and it runs with no problem just the link isnt working, can there be other contributing problems to it Link to comment Share on other sites More sharing options...
Ingolme Posted March 8, 2015 Share Posted March 8, 2015 When you click on the link what happens and what URL shows up in the address bar? File names are usually case sensitive, so be sure that you have the uppercase and lowercase letters correct in the link. 1 Link to comment Share on other sites More sharing options...
RaRa3 Posted March 8, 2015 Author Share Posted March 8, 2015 (edited) yes the filenames are exact here is my code Edited March 8, 2015 by RaRa3 Link to comment Share on other sites More sharing options...
Ingolme Posted March 8, 2015 Share Posted March 8, 2015 What happened there is that you have curly quotes instead or normal double-quotes. They're being interpreted as part of the filename. Notice the difference <a href=“Login.html”><a href="Login.html"> 1 Link to comment Share on other sites More sharing options...
RaRa3 Posted March 8, 2015 Author Share Posted March 8, 2015 oh thank you so much, I didnt know there were different types of quotation marks, thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now