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

CSS How to Make a Website Adding Pages to a Website Build the Contact Page

Contact Page not showing in Workspaces Preview

When I try to preview the Contact page on the Preview screen, it shows the link as an error.

I have added all the code in the about page and it works properly.

Is there a bug when adding a 3rd HTML page in workspace or have i got an error in my code?

''' <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Daniel Corby | Australian</title>
<link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,300,700italic,700|Oswald' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Daniel Corby</h1> <h2>Australian</h2> </a> <nav> <ul> <li><a href="index.html" >Portfolio</a></li> <li><a href="about.html" >About</a></li> <li><a href="contact. html" class="selected">Contact</a></li> </ul> </nav> </header> <div id="wrapper"> <section> <h3>General Information</h3> <p>If you have any questions please don't hesitate to contact me.</p> <p>Please use Instagram or Email to contact me. </p> </section> <section> <h3>Contact Details</h3> <ul class="contact-info"> <li class="phone"><a href ="tel:0439112944">0439 112 944</a></li> <li class="mail"><a href="mailto:daniel.corby01@gmail.com">daniel.corby01@gmail.com</a></li> <li class="instagram"><a href="http://instagram.com/corbexcorby/">@corbexcorby</a></li> <li class='facebook'><a href='https://www.facebook.com/messages/daniel.corby/'>Facebook.com/daniel.corby</a></li> </ul> </section> <footer> <a href="http://instagram.com/corbexcorby/"> <img src="img/instagram-512.png" alt="Instagram Logo" class="social-icon"></a> <a href="https://www.facebook.com/daniel.corby"> <img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a> <p>Ā© 2015 Daniel Corby</p> </footer> </div> </body> </html>

Thanks,

Daniel

2 Answers

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Daniel,

You have a space in your code that needs to be removed.

<li><a href="contact. html"

<!-- change to this -->

<li><a href="contact.html"

Hope this helps.

Thanks Wayne!

Fixed it.