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

Nothing in my html code is working help?

When I preview the page it's, well see for yourself. Here is the code.

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Phill | Designer</title> </head> <body> <header> <a href="index.html"> <h1>Phill</h1> <h2>Designer</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">Contact</a></li> </ul> </nav> </header>
<section> <ul> <li> <a> href="img/numbers.01.jpg" <img src="img/numberes.01.jpg" alt=""> <p>Expermentation with color and texture</p> </a> </li> <li> <a> href="img/numbers.02.jpg" <img src="img/numberes.01.jpg" alt=""> <p>Expermentation with color and texture</p> </a> </li> <li> <a> href="img/numbers.06.jpg" <img src="img/numberes.01.jpg" alt=""> <p>Expermentation with color and texture</p> </a> </li> <li> <a> href="img/numbers.09.jpg" <img src="img/numberes.01.jpg" alt=""> <p>Expermentation with color and texture</p> </a> </li> <li> <a> href="img/numbers.012.jpg" <img src="img/numberes.01.jpg" alt=""> <p>Expermentation with color and texture</p> </a> </li> </ul> </section> <Footer> <p>Ā© 2014 Phill.</p> </Footer> </body> </html>

Can you elaborate on your problem?

My preview isn't working. that's it.

Thanks code.am. Code am thanks for being at least the best you can by not answering this question at all. Not only is the question a very clear question, you have a much better understanding of the problem than I do, that's why the question states " Nothing in my html code is working help? When I preview the page it's, well see for yourself. Here is the code." Not only did I give you the code to observe you failed to answer the question for any line of the question posted or code line, which is not numbered in this question because of copy and paste provisions. When posting to a forum please do not answer a question with a question. Also it's best not to try to answer a question when you don't know the answer, it make you look like you don't know the answer. Now for everyone whom attempted to answer the question It was something that Treehouse had to adjust for my profile and thanks for the effort. Code am you deserve a negative five for your post. Learn how to answer a post. Your action is yours don't be a bot for someone allowing them to control your response or action be proactive give the correct answer or advice.

3 Answers

Your missing the very first step

After your doc type tag you should have an opening and closing html tag and then all your code should go in between your opening and closing html tag.

<html>
  <body>
  <body/>
<html/> this should be at the very end, enclosing all you code.

Thanks Melissa. There's nothing wrong with my code. Thanks for the help your code should look like this <html> <head></head> </html> of course include the doc type before anything on your document.

Is your code encapsulated by an <html></html> element? I don't see one. It should open right after <!DOCTYPE html>

Correction: is your code encapsulated by an html element? I.e.: <html></html>