Advertisements
Advertisements
Question
Why is CSS used in web design?
Long Answer
Advertisements
Solution
CSS (Cascading Style Sheets) is used in web design primarily to separate the content (HTML). Its main purposes are:
- Consistent Styling: It allows you to apply uniform colours, fonts, and layouts across multiple webpages from a single file, ensuring a professional look.
- Control and Layout: It provides precise control over the positioning of elements, margins, padding, and responsiveness (making the site look good on mobile and desktop).
shaalaa.com
Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
