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

General Discussion

Scott Moore
Scott Moore
4,050 Points

So a quick question about uploading files to the webhost?

I had a recent dilemma uploading some code to my webhost. I worked out the issues, but I am a little confused. It may be my fault seeing as I'm a noob. But here's something weird that happened. If I'm mistaken please tell me.

So I uploaded some code. Instead of making a div for the header I just used header on my local. Everything worked fine, but when I uploaded the code it would not accept header and basically deleted the code. The fix was creating<div class="header"> and that solved the problem.

But I was under the impression that header would work especially if I have at least one element of h1 -h6. I was using H1 for a logo and the UL for some social icons to float on the right side of the page. That was all I was trying to accomplish. The nav bar was going underneath.

Did I use the wrong element? Little confused on this one. Should I have just put header under the div class header selector. Or should I have just made div class=header?

Anyone got some insight. Did I screw that one up?

1 Answer

Gildo Santana
Gildo Santana
3,184 Points

I'm not sure if I understand your question. The page didn't display correctly or you couldn't validate? What doctype did you use?