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

hi i just finished HTML forms and Nick suggests that we pactice writing css for our form .

anyone tell where to start with writing css for the form. there is the main,css file do we create another stylesheet or anyone pls share with me how and where you practice your css code.feeling a little lost

6 Answers

Juan is correct, it is best practice to have a single css file.

You can simply mark the page off where you want to start your styles and work within the main.css file.

If you wish to add a second CSS file, just remember that whichever file comes last when listed in the .html file will over ride what is before that. So if you were to add in a secondary.css file under main.css it would take precedence.

You can do it on a separate css file or on the main file however you feel confortable, But I believe its best practice to have only one CSS file because its less load time and http request that the browser will make. So I would recommend to start it on the main.css .

can i comment out the main.css file and then greate my own file. will it still affect load time??

i mean comment out the <link rel> css file statement in my html and instead link with my own styling?

yes you can do it that way as well. I did that in my portfolio site. I have a main.css and then the minified version which is what I uploaded.

ok thnx.