+ 2
which is better to use external css or internal css?
6 Antworten
+ 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.
+ 3
External. The internals should focus more on the content.
+ 3
Thank you bro
+ 2
Always use external css
+ 1
Calvin is there any reason to use external css
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.