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 HTML Tables Table Basics Create a Basic Table

James Coles
James Coles
2,449 Points

What does the normalise.css mean?

Hi,

I get the main.css but what is the reason for the normalise?

3 Answers

Evgeniia Mas
Evgeniia Mas
4,452 Points

Hello, James! Stuart explained you about normalize.css already, bus as if you have additional question, I'll explain a little bit more about it. You are not obliged to use that file (normalize.css) or to use particularly this one. I mean that your page won't "crash" without it. But you should do it as a very good, useful practice if you really care about how your webpage will look out in defferent browsers . For example, developing your page you assigned your header or other element margins to look good. You finished it and it looks nice in your browser. But it is possible that users of your page will have other browser with another default styles, so for that person your page will look differently and possibly more worse than you did it as you couldn't consider all possible features and new versions. To prevent maximally such unpleasant situations you use normalize.css and so your page will be still nice as you wanted, developing it. And I said you are not obliged to use this one as there are several ways to do it. As to me I include sometimes Eric Meyer’s β€œReset CSS”, which is used for same purposes.

So it is enough to download that file and reference it to HTML! Include a link to normalize.css or the same one before your own styles (main.css) as they can overwite them if you change that order.

Stuart Wright
Stuart Wright
41,118 Points

normalize.css is used to set default styles so that they are consistent across browsers. Each browser has its own built-in defaults, and using a normalize.css file sets default values that will be the same in any browser.

James Coles
James Coles
2,449 Points

Brilliant, good to know.

Does this mean that I can just download the file and reference it in my HTML?