+ 2

which is better to use external css or internal css?

22nd Jul 2019, 8:48 AM
amarendra
amarendra - avatar
6 Answers
+ 2
amarendra 2 main reasons you should use external css. 1. Proper structure of documents, html should be focus on contents, styling on css file, as what Sonic mentioned. 2. Ease of website theme styling, you can write multiple style.css files for a website. Such as style-light-theme.css, style-dark-theme.css for day or dark mode styles. Other like style-xmas.css, style-newyear.css for website styling in festivals or events 3. External css can be preprocessing by sass, less which are the powerful css precompile tools. 4. css file can be reused for other websites.
22nd Jul 2019, 9:18 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 3
External. The internals should focus more on the content.
22nd Jul 2019, 9:05 AM
Sonic
Sonic - avatar
+ 3
Thank you bro
22nd Jul 2019, 9:34 AM
amarendra
amarendra - avatar
+ 2
Always use external css
22nd Jul 2019, 8:51 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 1
Calvin is there any reason to use external css
22nd Jul 2019, 9:10 AM
amarendra
amarendra - avatar
0
It clutters up the HTML to put it inside, same as JavaScript. Unless you have a VERY GOOD reason not to, please use external CSS. In fact, when I learnt web programming, they never even showed how to do it internally because you shouldn’t. Readability matters.
22nd Jul 2019, 11:22 PM
Rora