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
John Donnell
7,801 PointsGeneral question about <a href=""></a>
I changed my logo link and portfolio links like this to stop it from having a double url for the main page, so instead of having www.example.com and www.example.com/index.html now I only have one www.example.com Is this okay? or is there some other way I should be doing this?
<a href="/" id="logo">
<h1>John Donnell</h1>
<h2>Designer</h2>
</a>
<nav>
<ul>
<li><a href="/" class="selected">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
1 Answer
Gloria Dwomoh
13,116 PointsYou actually need to have an index.html page. Your website won't work properly (if it actually does work) on most browsers without it. Does that work as it suppose to?
John Donnell
7,801 PointsJohn Donnell
7,801 PointsYea it still works, I still have a index.html file I just changed the links. The site works fine on all browsers I tried.
Gloria Dwomoh
13,116 PointsGloria Dwomoh
13,116 PointsWhen you click on... John Donell - Designer headers, does it load the homepage?
John Donnell
7,801 PointsJohn Donnell
7,801 Pointswww.john-r-donnell.com check it out it works. i was just seeing if there was a better way of doing it.
Gloria Dwomoh
13,116 PointsGloria Dwomoh
13,116 PointsNice work! I think the way you did it, since it works, is the simplest way, and often the simple way is the best.
John Donnell
7,801 PointsJohn Donnell
7,801 PointsThank you, I noticed the double url when I made the site map and it had two links for the home page. I changed it like that and it worked.