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 Introduction to HTML and CSS (2016) Getting Familiar with HTML and CSS Building Web Pages with HTML and CSS

HTML code and CSS code - Seperated

Hi, Community!

I have noticed that in this exercise, there are two different working files in the workspace - index.html and styles.css.

Let's imagine I have a job coding websites. Will I always have two different working files for a webpage (one for html and one for css)?

Thanks so much for you all's help. :)

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Allison,

Yes, there will (or at least should be) at least 2 files. This would be for an extremely simple site though. When you start working on more detailed and complex sites, you could potentially end up with files numbering in the hundreds. You could have 100s of HTML files, many CSS files, and a bunch of files of JavaScript, and / or any backend languages...
But, the short answer here... yes, HTML and CSS will always be separate.

Keep Coding! :) :dizzy:

Thanks so much Jason! :)