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

HTML How to Make a Website Sharing a Website Upload the Website

Reece Moore
Reece Moore
11,146 Points

Index.html issue

For some reason when I open my website online it links through to the website directory instead of the portfolio page. is there something wrong with my code?

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Reece Moore | Front End Developer</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Permanent+Marker|Indie+Flower|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> <meta name="viewport" content="width=device-width, initial-scale=0.1"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Reece Moore</h1> <h2>Front End Developer</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> <div id="wrapper"> <section> <ul id="gallery"> <li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt""> <p>Experimentation with colour and texture</p> </a> </li> <li> <a href="img/numbers-02.jpg"> <img src="img/numbers-02.jpg" alt""> <p>Palying with blending moddes in photoshop</p> </a> </li> <li> <a href="img/numbers-06.jpg"> <img src="img/numbers-06.jpg" alt""> <p>Trying to create an 80's style</p> </a> </li> <li> <a href="img/numbers-09.jpg"> <img src="img/numbers-09.jpg" alt""> <p>Drips created using photoshop brushes</p> </a> </li> <li> <a href="img/numbers-12.jpg"> <img src="img/numbers-12.jpg" alt""> <p>Creating shapes using reputitions</p> </a> </li> </ul> </section> <footer> <a href="http://twitter.com/recruiter_moore"><img src="img/twitter-wrap.png" alt"Twitter Logo" class="social-icon"></a> <a href="http://facebook.com/ReeceLondon"><img src="img/facebook-wrap.png" alt"Facebook Logo" class="social-icon"></a> <P>Ā© 2015 Reece Moore.</P> </footer> </div> </body> </html>

Oliver Sewell
Oliver Sewell
16,425 Points

are you using the html opening and closing tags at the top and bottom of the page also the head and body ones?

Reece Moore
Reece Moore
11,146 Points

Hey Oliver, yeah I am using the html open and closing tag on the site. I have worked it out, it was down to a miss spelling! Thanks for your quick response

Reece

Oliver Sewell
Oliver Sewell
16,425 Points

No problem i do that alot !

Chi-Shiang Wang
Chi-Shiang Wang
3,471 Points

Hi, Reece Moore

are you using the<head> and <body> tag? maybe you can try to add them into you html file, might be work!

I'm not sure this can help you solve your problem >"<

David

1 Answer

Is your file named index.html? Are you uploading it to the www folder? How long ago did you buy the space? I think these would be the only things that might make it go to the directory instead of your index.html file.