HTML HTML Basics Images, Text and Links Understanding File Paths

edward holmes
edward holmes
2,130 Points

Link to <a href="articles/article.html"> not working on my browser

When I enter file path <a href="articles/article.html">, save the file, and refresh the page in my browser, then select on the Read more tab in my newly created site. Can someone help me figure outwhy it isn't working? Is it a bug?

2 Answers

missgeekbunny
missgeekbunny
37,032 Points

Based on what you have above it almost looks like you may have copy and pasted back ticks from somewhere instead of having quotes. Try erasing the quote marks and redoing them with your keyboard. Sometimes silly things like that trip up my code even if it's something I wrote before with quotes I got from GitHub.

edward holmes
edward holmes
2,130 Points

Thanks for the time to reply. However your suggestion did not work. I am pasting the entire code of that section here. Please let me know if you see something around the code that could mess up the code. Thanks.

    <article>
      <header>
     <h3>How Schools Use Virtual Reality to Improve Education</h3>
      <p> By: Author McAurthorFace </p></header>
     <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices euismod turpis eget porta. Etiam nulla massa, pretium et massa nec, ornare dignissim nisi.</p>
     <a href="articles/2017/article.html">Read more</a>
     <footer>Published: June 12, 2017</footer> 
  </article>
missgeekbunny
missgeekbunny
37,032 Points

Do you have the articles and 2017 folder as your path says? Also is your code in the same folder? That would be my only other guess is that the path is off somehow. I know if you are on linux or Mac it is case sensitive so you'll want to make sure you don't have caps that you didn't type or that you did that don't exist. Not sure what else I can offer but hope that helps.

edward holmes
edward holmes
2,130 Points

Yes missgeekbunny, I have that file path/structure. The structure goes HTML Basics- Global Structure of an HTML Document/articles.html/2017/article.html, Just like in the video. Thanks again.