Results 1 to 3 of 3

Thread: What benefits and demerits do External Style Sheets have?

  1. #1

  2. #2
    Join Date
    Jun 2013
    Location
    Forum
    Posts
    2,096

    Default

    Apply styles to a whole website by placing the CSS into an external stylesheet. An external style sheet is a separate file where you can declare all the styles that you want to use on your website. You then link to the external style sheet from all your HTML pages.
    Cheap VPS Hosting | $1 VPS Hosting
    Windows VPS Hosting | Windows with Remote Desktop Access
    Cheap Dedicated Servers | Linux Dedicated Server Hosting

  3. #3
    Join Date
    Apr 2020
    Posts
    704

    Default

    the only con that I can think of for external stylesheets is that it requires the browser to do an HTTP request to load the stylesheet, which would impact loading time, though, for production purposes, you are likely to just use one stylesheet file so it shouldn’t be too much.

    The biggest advantage of a stylesheet is that it helps keeping the code clean and organized. It’s much more convenient to have the content in the HTML file, the styles in the CSS file, and the scripts in the JS file. If you need something, it’s much easier to find it in the appropriate file.

    You should really only use inline CSS and the <style> tag if you need to play with specificity, as both of those are more specific than anything in external CSS file.

Similar Threads

  1. How to block a specific external command on Windows?
    By ORLOVA in forum Software & Hardware
    Replies: 2
    Last Post: 06-16-2021, 02:14 PM
  2. What is the definition of external link?
    By swatijain2233 in forum Business Tools
    Replies: 5
    Last Post: 01-26-2018, 05:34 AM
  3. How to style switcher js in responsive web design?
    By johnwest in forum Web Design Solutions
    Replies: 3
    Last Post: 12-01-2017, 07:24 PM
  4. Difference between style and <style> tag
    By christinebreese in forum Web Design Solutions
    Replies: 3
    Last Post: 03-22-2017, 11:41 AM
  5. Guide: Building your own External Hard Drive
    By jonys in forum Software & Hardware
    Replies: 8
    Last Post: 04-20-2011, 09:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •