+ 1

Why we use external CSS file?

Why we use external css file (.css)

28th Apr 2018, 7:49 AM
SK Joy
SK Joy - avatar
3 Réponses
+ 6
External stylesheets allow you to completely separate your CSS from your HTML. The benefits of using an external style sheet are: -Everything is stored within a single file. -Once changed/updated, the changes are reflected on all other pages that reference the stylesheet. -This makes it easier to maintain larger websites. -Pages load quicker once the main CSS file has been cached, As a result bandwidth goes down. -Effectively, you’re able to change the entire look and feel of a website through a single file.
28th Apr 2018, 7:53 AM
Rhythm Khandelwal
+ 1
... an additional advantage is that you can make different stylesheets for different screen sizes and resolutions. you can define in the html the conditions for the different stylesheets. that's nice for performance since the browser doesn't need to go through unnecessary code before building the DOM.
28th Apr 2018, 9:11 AM
wenz
wenz - avatar
+ 1
for making our code more readable..
1st May 2018, 6:08 PM
Mehedi Abdullah
Mehedi Abdullah - avatar