Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Creating HTML Content Include External CSS

Stacy Fabian
Stacy Fabian
2,246 Points

Does Capitalization Really Matter?

So in this video the guy instructs you to create a new folder to hold your CSS document. He specifically says to name it "css" in lowercase. I'm wondering if the capitalization of this and other folders in live environments really matters or if it's just a preference thing? Thanks!

4 Answers

Hey Stay, No it does not matter because computer is smart enough to recognize the extension .css. I think back in the day CSS wasn't recognize so people decide to use .css.. If you want to verify you can download sublime text and save it as .CSS to see for yourself. I hope this helps.

James Barnett
James Barnett
39,199 Points

because computer is smart enough to recognize the extension .css

Only Windows recognizes "extensions" as separate from a file name. So no, on many file systems a computer isn't that smart.

James Barnett
James Barnett
39,199 Points

I'm wondering if the capitalization of this and other folders in live environments really matters or if it's just a preference thing?

Most web servers run on Linux which is case-sensitive, so yes there's a good reason to lowercase.

Well I would not say you are wrong but it works on OS X as well as windows. For the most part, computer recognizes though just like you said sometimes case does matter. However, for the purpose of html and doing this on sublime text and other text writer, they do recognize .CSS.

^Did not know what mod mean until today. Moderator who works for the treehouse. Thank you for addressing that out. Expect to learn through this forum.

James Barnett
James Barnett
39,199 Points

Moderator who works for the treehouse.

Moderators don't work for Treehouse, they are just students that like to help out other students on the forum.

Only people with staff next to their name work for Treehouse.

Oliver Brewester
Oliver Brewester
3,180 Points

Get in the habit of writing all extensions and all code for that matter in lower case. When you come to Javascript and other languages they are case sensitive and treat "code" different to "CODE." which can make debugging real hard. Plus im pretty sure some older operating systems especially with Windows take issue with finding uppercase folders on a URL

Stacy Fabian
Stacy Fabian
2,246 Points

Thanks Oliver and everyone else. Always good to learn things through here. :) I'm pretty brand new to code from scratch (just worked on the end user level of Drupal with some basic page level HTML editing) so it's good to learn the correct format for everything now.