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 Styling Web Pages and Navigation Style the Portfolio

Tristen Vukelich
Tristen Vukelich
1,141 Points

More reasoning?

Im currently in the How to Make a Website lesson and I feel like I'm just copying everything the instructor does. He labels things and pulls classes and id's out of his ass without really explaining why they are called that or where he learned the names from. Where can I get a deeper understanding of why certain names are used so I can begin to gain fluency in the language?

I understand the layout, I just don't understand the language. I wouldn't know what to call things if I wasn't being told. Thanks!

2 Answers

Anthony Stapor
Anthony Stapor
3,369 Points

Hello Tristen, I suggest that you start with the HTML and CSS basic courses. You can find them in your library. Also, check this out: http://rokkitpress.github.io/Treehouse_How_To_Make_A_Website/code.html#css-general-info

A Treehouse mod posted this and it could be helpful. Also remember, Google is your friend!

Mark Pryce
Mark Pryce
8,804 Points

Id's and class names are completely up to you and you can ultimately call them what ever you want. They are anchors for you to refer to when styling, and adding functionality.

Id's and classes should be something to help summarise what that specific anchor relates to.

It is true that there are some universal names that people commonly use such as wrapper, container and main-nav, it's good practise to get used to using them so other coders can easily reference them if others need to edit the code.

As was mentioned Google can help with the more commonly used names.