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

Konrad Pilch
2,435 PointsHTML Naming
Hi, can somebody tell me good naming conventions? So I don't get lost in my project. If I'm doing.h a home, contact, blog pages etc.. Then what would their html names will be? Container -blog etc..?

Antonio Jaramillo
15,604 PointsHere are a few links to blogs that discuss the topic of naming conventions. Hope this helps you out.
http://blogs.adobe.com/digitalmarketing/search-marketing/10-naming-conventions-lead-seo-success/
http://www.searchenginejournal.com/url-naming-best-practices/46740/

Konrad Pilch
2,435 PointsI ment more like this
<div class="wrapper">
<header id="masthead">
<div class="start-img">
<img src="assets/img/head2.jpg">
</div><!-- /start-img -->
You can see i named a class wrapper that wraps the whole page and gives 30px margin on top and bottom. My masthead id for the header. My image thats a background for my navigation , i called it start-img.
I dont know any good names for them.
1 Answer

Antonio Jaramillo
15,604 PointsAs long as everyone that is working on your project has an agreement on id and class naming conventions, than you can name them whatever you like. I would advise to be careful that your names might be confusing to other coders, though. For example, "masthead" could be confused as something that is part of a boat. "Main-header" would probably be better. "Start-img" also could be confused as some sort function that triggers an image to be displayed. However, if you are the only one who'll ever code for this project, and your names make sense to you, than you'll be fine.

Konrad Pilch
2,435 PointsYou got it xD but I get confusing too when I build more pages. The way I name then gets confusing after I fo few pages nd i dony kbow what to call others after.
Stanley Thijssen
22,831 PointsStanley Thijssen
22,831 PointsI dont really understand your question. Could u make it a bit more clear so i might be able to help ya:)