Jump to content
Sign in to follow this  
RaRa3

HTML

Recommended Posts

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

Share this post


Link to post
Share on other sites

What program are you using to edit the HTML?

  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

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">
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...