Why is it recommended to use external stylesheets instead of inline styles for CSS?
- To improve browser compatibility
- To increase specificity
- To separate content from presentation
- To speed up rendering time
Using external stylesheets helps maintain a clear separation between content and presentation, making the code more modular and easier to manage. It also allows for better caching, leading to faster rendering times.
Loading...
Related Quiz
- If you have two conflicting CSS rules that point to the same element, how does CSS determine which one to apply?
- The list-style-type property can accept a string value to create custom counters, typically defined as ________.
- CSS Houdini's ________ API allows developers to define custom CSS properties that can be used in standard CSS files.
- When designing for mobile-first, it's recommended to start with a ________ viewport width in CSS before adjusting for larger screens.
- You have a complex web page layout with nested elements. You want to specifically style an element that is the second child of its parent, regardless of the type of element. Which pseudo-class selector will ensure your style is applied correctly?