Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Darren Davis
1,617 Points"Portfolio" link not working!
When clicking the 'portfolio' link, which is the main html page built on "How to design a website" (first course), the link is broken and gives an error page. I have gotten to the part where I am adding the second page to the website...the 'about' page which is linked to the 'about' link in the nav bar. Upon doing this and going to my new page, I realized I can not get back to the first page due the link being broken.
Someone please advise!
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Darren Davis | Web Designer</title>
<link rel="stylesheet" href="css/normalize.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,800,800italic,400italic|Ubuntu:700,400,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<header>
<a href="index.html" id="logo">
<h1>Darren Davis</h1>
<h2>Designer</h2>
</a>
<nav>
<ul>
<li><a href="index.html" class="selected">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
3 Answers
Darren Davis
1,617 PointsThank you both! I tried something and it worked. I got to thinking it was not linked somehow in the file tree so I checked it thoroughly. I decided to create a new file in the tree and named it index.html (exactly like the first) and copy/pasted from the original then deleted it. It worked...link is no longer broken.
Bryce Santos
11,157 PointsThe only thing I can really think of is that your portfolio page isn't named "index.html", but it is though, right? They're also all in the root of the folder?
Jennifer Nordell
Treehouse TeacherMy first suggestion is to make sure on the left side in your file structure that index.html is actually named "index.html". Capitalization matters. If it's "Index.html" it won't work.
Bryce Santos
11,157 PointsBryce Santos
11,157 PointsAyy! Great stuff, man. Glad to hear it worked.
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherOdd behavior there from the workspace then. But kudos on getting it working!
michael wilson
918 Pointsmichael wilson
918 PointsYou sir saved me the trouble of ripping out all of my hair. You are a scholar and a gentleman.