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 HTML First Create the Content Containers

True Bey
True Bey
166 Points

Content Containers

When I went to view my page following Nick's direction, my page doesn't look like his, It just has my name, not the "Designer" and copyright syntax. I had to use my phone to compare my code to his line by line and they look exactly alike. Don't know what I'm doing wrong...? How do you know when to indent...?

4 Answers

Hey True!

Please could you paste your code into the forums here so we can see what it looks like? If you don't know how to properly format your code for the forums already then I would recommend you refer to the "Markdown Cheatsheet" below the post box!

-Luke

True Bey
True Bey
166 Points

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>True Bey | Designer</title> </head> <body> <header> <h1>True Bey</h1> <h2>Designer</h2> </header> <section> <p>Gallery will go here.</p> </section> <footer> <p>© 2015 True Bey.</p>
</footer> </body> </html>

After quickly examining your code I can't seem to find any issues with it!

Make sure you save the file and then try refreshing the preview!

Ante Penava
Ante Penava
2,279 Points

hold shift+click on refresh button to see last changes on site..

and wrap meta tag and title inside head tag

and check did you add html open and closing tags because i cannot see them here:)

Mark Cuda
Mark Cuda
6,428 Points

Yes, make sure that the file is saved, named index.html and in the main directory.

Also, one quick point. You asked "How do you know when to indent...?"

Quick answer, the indentation of your lines of code is not syntax based, it's only to help keep your code organized and beautiful. :) Of course, spaces and such have their place in certain areas of the HTML and CSS syntax.

True Bey
True Bey
166 Points

Thanks folks! the page refreshed and it looks good.

Awesome! I am glad you managed to get your problem solved.