Originally Posted by mastlund
what is better, using css code in html pages or using a different file and calling it in html?
Create a different file for CSS and give it .css extension. Then call the css file in HTML page.
Originally Posted by SRJ10
using files is an better option, this helps u maintain a different file for css codes. This keeps ur html code neat and clean so that when u refer ur code to detect errors, u find it comfortably and very easily. This trick to write code in a neat manner is refered as 'CODING EFFICIENCY'
In addition, if you create a different CSS file, and you need to make changes. Say, you want to change background color of content area. You just need to go to your css file and change the color code.
If you use in-page css, you got to make changes to every page. And what if your website got hundreds of pages?