Question:

Which of the following is the disadvantage of CSS?

Show Hint

Always test CSS designs in multiple browsers such as Chrome, Firefox, Edge, and Safari to ensure consistent appearance.
  • The web designer’s job is made easier
  • The CSS has less code compared to HTML
  • Using CSS makes website designing quick and efficient
  • The CSS compatibility varies with different browsers
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Understand the purpose of CSS.
CSS (Cascading Style Sheets) is a stylesheet language used to control the presentation and layout of web pages. It helps developers separate the design of a website from its structure, which is written in HTML. Using CSS allows developers to style multiple web pages at once and maintain consistency in design.
Step 2: Identify the advantages listed in the options.
Option (1) states that CSS makes the web designer’s job easier. This is actually an advantage because CSS reduces repetitive styling and allows centralized design control.
Option (2) states that CSS uses less code compared to HTML. This is also an advantage because CSS allows styles to be reused across multiple elements and pages, reducing overall code size.
Option (3) mentions that CSS makes website designing quick and efficient. This again represents a benefit since CSS simplifies layout design and improves development efficiency.
Step 3: Identify the actual disadvantage.
Option (4) states that CSS compatibility varies with different browsers. This means that some CSS properties may work differently or may not be fully supported in certain browsers. Developers sometimes need to write additional code or test extensively to ensure consistent appearance across browsers.
Step 4: Conclusion.
Therefore, the disadvantage of CSS mentioned in the options is that CSS compatibility may vary between different browsers.
Was this answer helpful?
0
0