+ 1
Why we use external CSS file?
Why we use external css file (.css)
3 Respostas
+ 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.
+ 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.
+ 1
for making our code more readable..